path: root/src/angle/src/config.pri
diff options
authorKai Koehne <>2015-01-07 09:57:39 +0100
committerKai Koehne <>2015-01-13 12:59:24 +0100
commit2fe8c06cf14d58e8a2a21b266258e2269ab3a304 (patch)
treeb6c94d114d6ffe2e28e536eaad97ae92b49ab949 /src/angle/src/config.pri
parent9e53325cfc9c099c344327e12f59f2e1f5a0a9e7 (diff)
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 <>
Diffstat (limited to 'src/angle/src/config.pri')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/angle/src/config.pri b/src/angle/src/config.pri
index f23bebef44..9a7bc8a68c 100644
--- a/src/angle/src/config.pri
+++ b/src/angle/src/config.pri
@@ -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 += -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.