mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
Fixed warning when compiling pzstd with CPPFLAGS=-Wunused-result and CXXFLAGS=-std=c++17
This commit is contained in:
committed by
Nick Terrell
parent
bc96d4b077
commit
a8b544d460
@ -322,7 +322,7 @@ Options::Status Options::parse(int argc, const char **argv) {
|
|||||||
g_utilDisplayLevel = verbosity;
|
g_utilDisplayLevel = verbosity;
|
||||||
// Remove local input files that are symbolic links
|
// Remove local input files that are symbolic links
|
||||||
if (!followLinks) {
|
if (!followLinks) {
|
||||||
std::remove_if(localInputFiles.begin(), localInputFiles.end(),
|
std::ignore = std::remove_if(localInputFiles.begin(), localInputFiles.end(),
|
||||||
[&](const char *path) {
|
[&](const char *path) {
|
||||||
bool isLink = UTIL_isLink(path);
|
bool isLink = UTIL_isLink(path);
|
||||||
if (isLink && verbosity >= 2) {
|
if (isLink && verbosity >= 2) {
|
||||||
|
Reference in New Issue
Block a user