From: Yann Collet Date: Wed, 16 Dec 2015 01:44:56 +0000 (+0100) Subject: fixed Visual warning X-Git-Tag: v0.4.5^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c8b925ab9a007536def852aa5aabe48fd013ffa;p=thirdparty%2Fzstd.git fixed Visual warning --- diff --git a/programs/bench.c b/programs/bench.c index f55219b4b..6b061f12b 100644 --- a/programs/bench.c +++ b/programs/bench.c @@ -27,7 +27,10 @@ * 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