mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Change zstdcli's main() declaration due to -Wmain on some compilers
This commit is contained in:
@ -79,13 +79,6 @@
|
|||||||
# define UNUSED_ATTR
|
# define UNUSED_ATTR
|
||||||
#endif
|
#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 */
|
/* force no inlining */
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# define FORCE_NOINLINE static __declspec(noinline)
|
# define FORCE_NOINLINE static __declspec(noinline)
|
||||||
|
@ -741,7 +741,7 @@ typedef enum { zom_compress, zom_decompress, zom_test, zom_bench, zom_train, zom
|
|||||||
# define MAXCLEVEL ZSTD_maxCLevel()
|
# define MAXCLEVEL ZSTD_maxCLevel()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int CONST_ARGC argCount, const char* argv[])
|
int main(int argCount, const char* argv[])
|
||||||
{
|
{
|
||||||
int argNb,
|
int argNb,
|
||||||
followLinks = 0,
|
followLinks = 0,
|
||||||
|
Reference in New Issue
Block a user