From 6c8b925ab9a007536def852aa5aabe48fd013ffa Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 16 Dec 2015 02:44:56 +0100 Subject: [PATCH] fixed Visual warning --- programs/bench.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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