summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-08-14 13:58:31 +0300
committerTor Lillqvist <tml@collabora.com>2014-08-14 13:58:31 +0300
commit7731f62c25e5a32043b783af2e6f7aa9afe2e26a (patch)
tree4dc40377eba8cccb43aedd150ea5e56979edf67e /solenv
parentb1744526cc35531f5cb561137082ea8f725be43a (diff)
If we disable C4189 we should also disable C4100
They are both bogusly emitted from SAL_WARN_IF in an optimizing compilation. Change-Id: Ia56687422a29c61a7a8ad0d48541300c7643120e
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 0911a0708117..0fbc69ef0c52 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -68,6 +68,8 @@ gb_AFLAGS := $(AFLAGS)
# cleaning away from the code, to avoid warnings when building with
# gcc or Clang and -Wall -Werror.
+# C4100: 'identifier' : unreferenced format parameter
+
# C4127: conditional expression is constant
# C4189: 'identifier' : local variable is initialized but not referenced
@@ -138,6 +140,7 @@ gb_CFLAGS := \
$(if $(MSVC_USE_DEBUG_RUNTIME),-MDd,-MD) \
-nologo \
-W4 \
+ $(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4100) \
-wd4127 \
$(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \
-wd4242 \
@@ -161,6 +164,7 @@ gb_CXXFLAGS := \
$(if $(MSVC_USE_DEBUG_RUNTIME),-MDd,-MD) \
-nologo \
-W4 \
+ $(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4100) \
-wd4127 \
$(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \
-wd4201 \