]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fixed warning when compiling pzstd with CPPFLAGS=-Wunused-result and CXXFLAGS=-std...
authorinventor500 <isaacganoung@gmail.com>
Sat, 31 Aug 2024 12:23:51 +0000 (07:23 -0500)
committerNick Terrell <nickrterrell@gmail.com>
Wed, 25 Sep 2024 16:51:05 +0000 (09:51 -0700)
contrib/pzstd/Options.cpp

index a77824edb051bee02db8cb3f6338773f4083c25d..43ea2721d98f77d9e31b33e213aa2688ba20714d 100644 (file)
@@ -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) {