Kaydet (Commit) 90ca44ae authored tarafından Thomas Arnhold's avatar Thomas Arnhold Kaydeden (comit) Tor Lillqvist

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
üst f7bd0edb
...@@ -70,6 +70,8 @@ gb_AFLAGS := $(AFLAGS) ...@@ -70,6 +70,8 @@ gb_AFLAGS := $(AFLAGS)
# C4127: conditional expression is constant # C4127: conditional expression is constant
# C4189: 'identifier' : local variable is initialized but not referenced
# C4201: nonstandard extension used : nameless struct/union # C4201: nonstandard extension used : nameless struct/union
# C4242: 'identifier' : conversion from 'type1' to 'type2', possible # C4242: 'identifier' : conversion from 'type1' to 'type2', possible
...@@ -137,6 +139,7 @@ gb_CFLAGS := \ ...@@ -137,6 +139,7 @@ gb_CFLAGS := \
-nologo \ -nologo \
-W4 \ -W4 \
-wd4127 \ -wd4127 \
$(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \
-wd4242 \ -wd4242 \
-wd4244 \ -wd4244 \
-wd4251 \ -wd4251 \
...@@ -159,6 +162,7 @@ gb_CXXFLAGS := \ ...@@ -159,6 +162,7 @@ gb_CXXFLAGS := \
-nologo \ -nologo \
-W4 \ -W4 \
-wd4127 \ -wd4127 \
$(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \
-wd4201 \ -wd4201 \
-wd4244 \ -wd4244 \
-wd4250 \ -wd4250 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment