]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed gcc warnings
authorPrzemyslaw Skibinski <inikep@gmail.com>
Wed, 8 Feb 2017 17:08:09 +0000 (18:08 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Wed, 8 Feb 2017 17:08:09 +0000 (18:08 +0100)
programs/fileio.c
programs/zstdcli.c

index 6b5f80ff44fb94ac5f77af12c5f88dec06ac080f..430127771ea4cfc009b02f34c236bfaf35e4b8cc 100644 (file)
@@ -419,10 +419,11 @@ static int FIO_compressFilename_internal(cRess_t ress,
 #ifdef ZSTD_GZCOMPRESS
         compressedfilesize = FIO_compressGzFrame(&ress, srcFileName, fileSize, compressionLevel, &readsize);
      //   printf("g_compresionType=%d compressionLevel=%d compressedfilesize=%d\n", g_compresionType, compressionLevel, (int)compressedfilesize);
-        goto finish;
 #else
+        (void)compressionLevel;
         EXM_THROW(20, "zstd: %s: file cannot be compressed as gzip (zstd compiled without ZSTD_GZCOMPRESS) -- ignored \n", srcFileName);
 #endif
+        goto finish;
     }
 
     /* init */
index 08e169ed8007d090524cebda12be31061a8c6f6a..30aa0b949ba78e6c35da270e73956bcbdfad6d67 100644 (file)
@@ -125,7 +125,7 @@ static int usage_advanced(const char* programName)
     DISPLAY( " -B#    : select size of independent sections (default:0==automatic) \n");
 #endif
 #ifdef ZSTD_GZCOMPRESS
-    DISPLAY( "--format=gzip : output .gz files \n");
+    DISPLAY( "--format=gzip : compress files to the .gz format \n");
 #endif
 #endif
 #ifndef ZSTD_NODECOMPRESS