summaryrefslogtreecommitdiff
path: root/solenv/gbuild
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/gbuild')
-rw-r--r--solenv/gbuild/platform/com_MSC_defs.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk
index e33f22e71eb8..6f4b6a9aaf74 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -126,6 +126,9 @@ gb_AFLAGS := $(AFLAGS)
# C4800: 'type' : forcing value to bool 'true' or 'false' (performance
# warning)
+# C4996: 'function': was declared deprecated
+# Also generated for C++ library functions that "may be unsafe"
+
gb_CFLAGS := \
-Gd \
-GR \
@@ -177,6 +180,12 @@ gb_CXXFLAGS := \
-Zc:forScope,wchar_t- \
-Zm500 \
+ifneq ($(MSVC_USE_DEBUG_RUNTIME),)
+gb_CXXFLAGS += \
+ -wd4996 \
+
+endif
+
# New warning(s) in Visual Studio 2010, let's try disabling these only
# for that specific compiler version, in case a later one will not
# need them disabled.