diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2012-03-08 17:18:43 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2012-03-08 17:19:15 +0800 |
commit | c9f55445aa2f86b1ea62367849522ecabbe48d72 (patch) | |
tree | 02f132ee0f1c3168621ccc6c92623d37d713062c | |
parent | 93e2c1f12a354bca11d3467f3d7a2a0eb5dcd683 (diff) | |
download | glib-c9f55445aa2f86b1ea62367849522ecabbe48d72.tar.gz glib-c9f55445aa2f86b1ea62367849522ecabbe48d72.tar.bz2 glib-c9f55445aa2f86b1ea62367849522ecabbe48d72.zip |
msvc_recommended_pragmas.h: Silence C4819 warnings
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.
-rw-r--r-- | msvc_recommended_pragmas.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/msvc_recommended_pragmas.h b/msvc_recommended_pragmas.h index f78f9a1ca..ff4028e2d 100644 --- a/msvc_recommended_pragmas.h +++ b/msvc_recommended_pragmas.h @@ -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 |