Add -Wconversion to GCC and Clang

clang-msvc spams warnings from the moc .cpp files that include Qt
headers.
This commit is contained in:
Vasily
2019-02-21 18:48:53 +01:00
committed by username223
parent 775d0e0e36
commit 29d41b4ed0
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -14,5 +14,5 @@ QMAKE_CXXFLAGS += -Wmost
QMAKE_CXXFLAGS += -Weffc++
#QMAKE_CXXFLAGS += -Wconversion
QMAKE_CXXFLAGS += -Wsign-conversion
#clang-msvc spams warnings on -Wconversion and -Wsign-conversion
# from the moc .cpp files including Qt stuff.
+1 -1
View File
@@ -8,4 +8,4 @@ QMAKE_CXXFLAGS += -Werror
#All includes from the third-party directory will not warn.
QMAKE_CXXFLAGS += --system-header-prefix=third-party
QMAKE_CXXFLAGS += -Weffc++
QMAKE_CXXFLAGS += -Weffc++ -Wconversion
+2
View File
@@ -9,3 +9,5 @@ QMAKE_CXXFLAGS += -Werror
# GCC only switches
QMAKE_CXXFLAGS += -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Wrestrict -Wnull-dereference
QMAKE_CXXFLAGS += -Wconversion