From: inventor500 Date: Sat, 31 Aug 2024 12:23:51 +0000 (-0500) Subject: Fixed warning when compiling pzstd with CPPFLAGS=-Wunused-result and CXXFLAGS=-std... X-Git-Tag: v1.5.7^2~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8b544d460f3db9a79d630d95f1fa3564c29be12;p=thirdparty%2Fzstd.git Fixed warning when compiling pzstd with CPPFLAGS=-Wunused-result and CXXFLAGS=-std=c++17 --- diff --git a/contrib/pzstd/Options.cpp b/contrib/pzstd/Options.cpp index a77824edb..43ea2721d 100644 --- a/contrib/pzstd/Options.cpp +++ b/contrib/pzstd/Options.cpp @@ -322,7 +322,7 @@ Options::Status Options::parse(int argc, const char **argv) { g_utilDisplayLevel = verbosity; // Remove local input files that are symbolic links if (!followLinks) { - std::remove_if(localInputFiles.begin(), localInputFiles.end(), + std::ignore = std::remove_if(localInputFiles.begin(), localInputFiles.end(), [&](const char *path) { bool isLink = UTIL_isLink(path); if (isLink && verbosity >= 2) {