Add -Wshadow and solve warnings

This commit is contained in:
Vasily
2019-02-21 18:48:53 +01:00
committed by username223
parent 89e026e714
commit 81af2b9c72
5 changed files with 12 additions and 5 deletions
@@ -7,3 +7,5 @@ include(common-msvc.pri)
#clang-msvc does not enable the c++17 flag with qmake's c++1z flag.
QMAKE_CXXFLAGS += /std:c++17
QMAKE_CXXFLAGS += -Xclang -Wshadow
+2
View File
@@ -1,3 +1,5 @@
QMAKE_CXXFLAGS += -Werror
#All includes from the third-party directory will not warn.
QMAKE_CXXFLAGS += --system-header-prefix=third-party
QMAKE_CXXFLAGS += -Wshadow
+3
View File
@@ -1,3 +1,6 @@
#g++-7 is needed for C++17 features. travis does not supply this by default.
QMAKE_CXX = g++-7
QMAKE_CXXFLAGS += -Werror
QMAKE_CXXFLAGS += -Wshadow