]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed Visual warning
authorYann Collet <yann.collet.73@gmail.com>
Sat, 13 Aug 2016 23:19:12 +0000 (01:19 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Tue, 16 Aug 2016 13:11:28 +0000 (15:11 +0200)
programs/fileio.c

index e0bba2087d02a3e9f16ebff3b2c344e4ddb2c448..66ccbc7845a205106ac55e1d894931fba9fcbb07 100644 (file)
 /* *************************************
 *  Compiler Options
 ***************************************/
-#define _POSIX_SOURCE 1          /* enable %llu on Windows */
-#define _CRT_SECURE_NO_WARNINGS  /* removes Visual warning on strerror() */
+#ifdef _MSC_VER   /* Visual */
+#  define _POSIX_SOURCE 1          /* enable %llu on Windows */
+#  define _CRT_SECURE_NO_WARNINGS  /* removes Visual warning on strerror() */
+#  pragma warning(disable : 4204)  /* non-constant aggregate initializer */
+#endif
 
 
 /*-*************************************