summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-13 17:27:47 +0200
committerTor Lillqvist <tml@collabora.com>2014-08-14 13:10:34 +0300
commit90ca44ae9f897b6abc80b3c5acfdea798d4f69ea (patch)
tree708ebe5ccc94788d2d99cb7378ba86e4ba17ef19 /solenv
parentf7bd0edb9e8e3dfbb4e085b100042a7749a2e7a5 (diff)
MSVC: disable C4189 again in optimizing builds
MSVC2012 emits bogus "unused variable" warnings for variables only used in a condition of SAL_WARN_IF in optimizing compilations. Nevertheless it's quite useful to have these warnings when not optimizing, then it does not emit them bogusly. Change-Id: I58a071db65bed15f753def793da8c0f9677abd4b
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/com_MSC_defs.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk
index 380b2c5370f5..0911a0708117 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -70,6 +70,8 @@ gb_AFLAGS := $(AFLAGS)
# C4127: conditional expression is constant
+# C4189: 'identifier' : local variable is initialized but not referenced
+
# C4201: nonstandard extension used : nameless struct/union
# C4242: 'identifier' : conversion from 'type1' to 'type2', possible
@@ -137,6 +139,7 @@ gb_CFLAGS := \
-nologo \
-W4 \
-wd4127 \
+ $(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \
-wd4242 \
-wd4244 \
-wd4251 \
@@ -159,6 +162,7 @@ gb_CXXFLAGS := \
-nologo \
-W4 \
-wd4127 \
+ $(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \
-wd4201 \
-wd4244 \
-wd4250 \