summaryrefslogtreecommitdiffstats
path: root/config/external/icu/defs.mozbuild
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-12-19 17:40:52 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-12-19 17:40:52 +0100
commit368170bdc089c59c743110b4de1f6cbc8a739a02 (patch)
tree1ac10f7a1221fa95643901dba03b4f890838ebe3 /config/external/icu/defs.mozbuild
parent3332f584c829aaac455d688c6c073937442c4c7f (diff)
downloadUXP-368170bdc089c59c743110b4de1f6cbc8a739a02.tar
UXP-368170bdc089c59c743110b4de1f6cbc8a739a02.tar.gz
UXP-368170bdc089c59c743110b4de1f6cbc8a739a02.tar.lz
UXP-368170bdc089c59c743110b4de1f6cbc8a739a02.tar.xz
UXP-368170bdc089c59c743110b4de1f6cbc8a739a02.zip
Issue #1316 - Reduce compiler warnings in ICU
This add a few disabled compiler warnings to the compiler flags on MSVC and specifically filters out the RTTI disabling CL flag to prevent CLI override warnings. This resolves #1316
Diffstat (limited to 'config/external/icu/defs.mozbuild')
-rw-r--r--config/external/icu/defs.mozbuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/external/icu/defs.mozbuild b/config/external/icu/defs.mozbuild
index 666bd4f6d..ad5b29378 100644
--- a/config/external/icu/defs.mozbuild
+++ b/config/external/icu/defs.mozbuild
@@ -47,3 +47,14 @@ if CONFIG['CLANG_CL']:
'-Wno-macro-redefined',
'-Wno-microsoft-include',
]
+
+if CONFIG['_MSC_VER'] and not CONFIG['CLANG_CL']:
+ CFLAGS += [
+ '-wd4005', # 'WIN32_LEAN_AND_MEAN' : macro redefinition
+ '-wd4996', # The compiler encountered a deprecated declaration.
+ ]
+ CXXFLAGS += [
+ '-wd4005', # 'WIN32_LEAN_AND_MEAN' : macro redefinition
+ '-wd4333', # '>>' : right shift by too large amount, data loss
+ '-wd4996', # The compiler encountered a deprecated declaration.
+ ]