From a690828cca4b70db48ea0aa39c79e782b650b0d8 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 11 Jan 2015 10:17:39 +0200 Subject: [PATCH] MSVC: Suppress unsafe template usage warnings c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\algorithm(1119) : warning C4996: 'std::_Transform1': 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' c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\algorithm(1100) : see declaration of 'std::_Transform1' d:\projects\qt-creator\qt-creator\src\libs\utils\algorithm.h(249) : see reference to function template instantiation '_OutIt std::transform::const_iterator,Utils::`anonymous-namespace'::QSetInsertIterator,F>(_InIt,_InIt,_OutIt,_Fn1)' being compiled with [ _OutIt=Utils::`anonymous-namespace'::QSetInsertIterator>, T=QString, Container=QSet, F=std::tr1::function, _InIt=QList::const_iterator, _Fn1=std::tr1::function ] d:\projects\qt-creator\qt-creator\src\libs\utils\algorithm.h(317) : see reference to function template instantiation 'C Utils::TransformImpl::call(const SC &,F)' being compiled with [ C=QSet, SC=QStringList, F=std::tr1::function ] D:\Projects\qt-creator\qt-creator\src\libs\utils\codegeneration.cpp(113) : see reference to function template instantiation 'QSet Utils::transform>(const SC &,F)' being compiled with [ T=QString, _Fty=QString (const QString &), SC=QStringList, F=std::tr1::function ] Change-Id: Iaf7c5fcdfbf5961b92c30b1d37b18e5476f6b7e1 Reviewed-by: Daniel Teske Reviewed-by: Eike Ziller --- qtcreator.pri | 1 + 1 file changed, 1 insertion(+) diff --git a/qtcreator.pri b/qtcreator.pri index 695a22c6168..ca06e9fa842 100644 --- a/qtcreator.pri +++ b/qtcreator.pri @@ -134,6 +134,7 @@ unix { win32-msvc* { #Don't warn about sprintf, fopen etc being 'unsafe' DEFINES += _CRT_SECURE_NO_WARNINGS + QMAKE_CXXFLAGS_WARN_ON *= -w44996 # Speed up startup time when debugging with cdb QMAKE_LFLAGS_DEBUG += /INCREMENTAL:NO }