ANGLE: Disable MSVC warning 4996 for debug builds
Disable compiler warning 4996 about the use of C++ standard
library functions like std::copy:
'std::copy': Function call with parameters that may be unsafe -
this call relies on the caller to check that the passed values are
correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See
documentation on how to use Visual C++ 'Checked Iterators'
Commit 0a76b6bc already silenced the warning in the
general MSVC mkspecs, the flags set there are however overwritten
for ANGLE.
Change-Id: I8f9a84d19171057715a8f9be1e8338e02a6c5ba0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
bb10
parent
9e53325cfc
commit
2fe8c06cf1
|
|
@ -72,8 +72,9 @@ msvc {
|
|||
# 4275: non - DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
|
||||
# 4512: 'class' : assignment operator could not be generated
|
||||
# 4702: unreachable code
|
||||
# 4996: Function call with parameters that may be unsafe
|
||||
QMAKE_CFLAGS_WARN_ON -= -W3
|
||||
QMAKE_CFLAGS_WARN_ON += -W4 -wd"4100" -wd"4127" -wd"4189" -wd"4239" -wd"4244" -wd"4245" -wd"4267" -wd"4275" -wd"4512" -wd"4702"
|
||||
QMAKE_CFLAGS_WARN_ON += -W4 -wd"4100" -wd"4127" -wd"4189" -wd"4239" -wd"4244" -wd"4245" -wd"4267" -wd"4275" -wd"4512" -wd"4702" -wd"4996"
|
||||
# Optimizations
|
||||
# /Oy: Omits frame pointer (x86 only).
|
||||
# /Gy: Enables function-level linking.
|
||||
|
|
|
|||
Loading…
Reference in New Issue