Kaydet (Commit) 197b1ac3 authored tarafından Herbert Dürr's avatar Herbert Dürr

#i122767# disallow pre-standard C++ for-scope

üst a609daa1
......@@ -99,8 +99,8 @@ EMPTYSTRING=
PATH_SEPARATOR=;
# use this for release version
CC_FLAGS_JNI=-c -MT -Zm500 -Zc:forScope,wchar_t- -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800 -Zc:forScope -GR -EHa
CC_FLAGS=-c -MT -Zm500 -Zc:forScope,wchar_t- -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800 -Zc:forScope -GR -EHa
CC_FLAGS_JNI=-c -MT -Zm500 -Zc:wchar_t- -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800 -GR -EHa
CC_FLAGS=-c -MT -Zm500 -Zc:wchar_t- -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800 -GR -EHa
ifeq "$(CPP_MANIFEST)" "true"
#CC_FLAGS+=-EHa -Zc:wchar_t-
LINK_MANIFEST=mt -manifest $@.manifest "-outputresource:$@;2"
......
......@@ -115,7 +115,7 @@ gb_CFLAGS := \
-wd4800 \
-wd4820 \
-wd4826 \
-Zc:forScope,wchar_t- \
-Zc:wchar_t- \
-Zm500 \
gb_CXXFLAGS := \
......@@ -161,7 +161,7 @@ gb_CXXFLAGS := \
-wd4800 \
-wd4820 \
-wd4826 \
-Zc:forScope,wchar_t- \
-Zc:wchar_t- \
-Zm500 \
gb_STDLIBS := \
......
......@@ -37,7 +37,7 @@ LINK_X64*:=$(WRAPCMD) $(LINK_X64_BINARY) $(NOLOGO) -MACHINE:X64
LIBMGR_X64=$(WRAPCMD) $(LIBMGR_X64_BINARY) $(NOLOGO)
IMPLIB_X64=$(WRAPCMD) $(LIBMGR_X64_BINARY)
USE_CFLAGS_X64=-c -nologo -Gs $(NOLOGO) -Zm500 -Zc:forScope,wchar_t- -GR
USE_CFLAGS_X64=-c -nologo -Gs $(NOLOGO) -Zm500 -Zc:wchar_t- -GR
# Stack buffer overrun detection.
CFLAGS+=-GS
......
......@@ -77,7 +77,7 @@ COMPILE_ECHO_FILE=
# disable "warning C4675: resolved overload was found by argument-dependent
# lookup":
# -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800
CFLAGS+=-Zm500 -Zc:forScope,wchar_t- -GR
CFLAGS+=-Zm500 -Zc:wchar_t- -GR
# Stack buffer overrun detection.
CFLAGS+=-GS
......
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