diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-09-22 17:42:00 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-09-22 17:42:00 (GMT) |
commit | 8c1ae998379bce4a0e719aaac43a777713ab5c00 (patch) | |
tree | ed96414c79da5f3f6985dc03b3bbc2c0a560e0da /programs/lz4cli.c | |
parent | abb6f7806a9753504776a7d4a9c1bbb4841f91c8 (diff) | |
download | lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.zip lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.tar.gz lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.tar.bz2 |
fixed : clang warnings
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r-- | programs/lz4cli.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c index 70f0760..2d612e7 100644 --- a/programs/lz4cli.c +++ b/programs/lz4cli.c @@ -48,6 +48,10 @@ # pragma warning(disable : 4127) // disable: C4127: conditional expression is constant #endif +#ifdef __clang__ +# pragma clang diagnostic ignored "-Wunused-const-variable" // const variable one is really used ! +#endif + #define _FILE_OFFSET_BITS 64 // Large file support on 32-bits unix #define _POSIX_SOURCE 1 // for fileno() within <stdio.h> on unix @@ -91,7 +95,7 @@ #if defined(_MSC_VER) // Visual Studio # define swap32 _byteswap_ulong -#elif GCC_VERSION >= 403 +#elif (GCC_VERSION >= 403) || defined(__clang__) # define swap32 __builtin_bswap32 #else static inline unsigned int swap32(unsigned int x) |