From 9f01aa713600f36dc7f21c149337051e1a8cdf7b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 15 Jan 2020 10:07:39 +0200 Subject: [PATCH] Suppress MSVC warnings from system headers. Because MSVC doesn't provide a way to suppress warnings in headers we will suppress all warnings we meet in headers globally. --HG-- branch : develop --- common.pri | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common.pri b/common.pri index 843bb6a94..87f21b7e0 100644 --- a/common.pri +++ b/common.pri @@ -909,5 +909,10 @@ MSVC_DEBUG_CXXFLAGS += \ -wd4718 \ -wd4946 \ -wd4868 \ # compiler may not enforce left-to-right evaluation order in braced initializer list - -wd4866 # compiler may not enforce left-to-right evaluation order for call to 'C++17 operator' + -wd4866 \ # compiler may not enforce left-to-right evaluation order for call to 'C++17 operator' + -wd4571 \ # catch(...) semantics changed since Visual C++ 7.1; structured exceptions (SEH) are no longer caught + -wd5026 \ # move constructor was implicitly defined as deleted + -wd5027 \ # move assignment operator was implicitly defined as deleted + -wd5039 \ # pointer or reference to potentially throwing function passed to extern C function under -EHc. + -wd4774 # format string expected in argument 3 is not a string literal }