From 4c3aba20dd5d85d323935e0f95baae8907a5a593 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Sat, 1 Dec 2018 17:56:45 +0000 Subject: [PATCH] With clang-cl use `/W4` instead of `-Wall -Wextra`. This is due to a change in the behaviour of clang-cl in LLVM 6.0 where `-Wall` became a synonym for `-Weverything` to be more like the behaviour of `/Wall` in the Microsoft compiler. `/W4` is the new way to spell `-Wall -Wextra`. --- mkspecs/features/warnings.pri | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkspecs/features/warnings.pri b/mkspecs/features/warnings.pri index 86663b55b..ceaee60ef 100644 --- a/mkspecs/features/warnings.pri +++ b/mkspecs/features/warnings.pri @@ -2,7 +2,7 @@ msvc:DEFINES *= _SCL_SECURE_NO_WARNINGS # swift standard warnings msvc:QMAKE_CXXFLAGS_WARN_ON *= /wd4351 /wd4661 -clang_cl:QMAKE_CXXFLAGS_WARN_ON *= -Wall -Wextra -Wno-unknown-pragmas -Wno-undefined-inline -Wno-self-assign-overloaded +clang_cl:QMAKE_CXXFLAGS_WARN_ON *= /W4 -Wno-unknown-pragmas -Wno-undefined-inline -Wno-self-assign-overloaded gcc:QMAKE_CXXFLAGS_WARN_ON *= -Woverloaded-virtual gcc:QMAKE_CXXFLAGS_USE_PRECOMPILE = -Winvalid-pch $$QMAKE_CXXFLAGS_USE_PRECOMPILE