mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
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`.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user