]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed Visual warning
authorYann Collet <yann.collet.73@gmail.com>
Wed, 16 Dec 2015 01:44:56 +0000 (02:44 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Wed, 16 Dec 2015 01:44:56 +0000 (02:44 +0100)
programs/bench.c

index f55219b4b760566967cb1d829951a4b0c8ef8aa8..6b061f12b3066af21cebe60a1a5168ab021cc368 100644 (file)
 *  Compiler Options
 ****************************************/
 /* Disable some Visual warning messages */
-#define _CRT_SECURE_NO_WARNINGS                  /* fopen */
+#ifdef _MSC_VER
+#  define _CRT_SECURE_NO_WARNINGS                /* fopen */
+#  pragma warning(disable : 4127)                /* disable: C4127: conditional expression is constant */
+#endif
 
 /* Unix Large Files support (>4GB) */
 #define _FILE_OFFSET_BITS 64