]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Change zstdcli's main() declaration due to -Wmain on some compilers
authormakise-homura <akemi_homura@kurisa.ch>
Wed, 14 Jul 2021 16:55:47 +0000 (19:55 +0300)
committermakise-homura <akemi_homura@kurisa.ch>
Wed, 14 Jul 2021 16:55:47 +0000 (19:55 +0300)
lib/common/compiler.h
programs/zstdcli.c

index cae0061a168d00c6ce4c1d6a938a8dd2dad828dd..a01c30cc191460d372aad2e2d2f0c0020bd78dee 100644 (file)
 #  define UNUSED_ATTR
 #endif
 
-/* CONST_ARGC tells the compiler correct const argc specificator for -Wmain. */
-#if !defined(__LCC__)
-#  define CONST_ARGC const
-#else
-#  define CONST_ARGC
-#endif
-
 /* force no inlining */
 #ifdef _MSC_VER
 #  define FORCE_NOINLINE static __declspec(noinline)
index 845610dc303be795b1f24e8cfc1f21361cb8ba3c..9178a4bef4f9867e1b74ad23708c5a2428cb755b 100644 (file)
@@ -741,7 +741,7 @@ typedef enum { zom_compress, zom_decompress, zom_test, zom_bench, zom_train, zom
 # define MAXCLEVEL  ZSTD_maxCLevel()
 #endif
 
-int main(int CONST_ARGC argCount, const char* argv[])
+int main(int argCount, const char* argv[])
 {
     int argNb,
         followLinks = 0,