msvc_recommended_pragmas.h: Silence C4819 warnings
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 8 Mar 2012 09:18:43 +0000 (17:18 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 8 Mar 2012 09:19:15 +0000 (17:19 +0800)
This warning appears when unicode chars that cannot be displayed in the
current Windows code page is used anywhere in the file, including comment
blocks.  We probably don't need to see these, especially as problems
caused by such characters are manifested as other warnings or errors,
for example, the need to add BOM to a file when compiling code with
complex script on Windows.

msvc_recommended_pragmas.h

index f78f9a1..ff4028e 100644 (file)
@@ -27,6 +27,9 @@
 #pragma warning(disable:4244)  /* No possible loss of data warnings */
 #pragma warning(disable:4305)   /* No truncation from int to char warnings */
 
+/* The file contains a character that cannot be represented in the current code page */
+#pragma warning(disable:4819)
+
 /* work around Microsoft's premature attempt to deprecate the C-Library */
 #define _CRT_SECURE_NO_WARNINGS
 #define _CRT_NONSTDC_NO_WARNINGS