Add -Wnon-virtual-dtor and resolve issues

The IPolicyConfig file is a third party file and since it describes a
third party API we can't make changes to it. Adding it via the system
includes disables warnings on most compilers.
This commit is contained in:
Vasily
2019-02-21 18:48:53 +01:00
committed by username223
parent 60bd0a54c1
commit 34204d2441
6 changed files with 10 additions and 3 deletions
@@ -11,3 +11,5 @@ QMAKE_CXXFLAGS += /std:c++17
QMAKE_CXXFLAGS += -Xclang -Wshadow
QMAKE_CXXFLAGS += -Wold-style-cast
QMAKE_CXXFLAGS += -Wnon-virtual-dtor
+2
View File
@@ -5,3 +5,5 @@ QMAKE_CXXFLAGS += --system-header-prefix=third-party
QMAKE_CXXFLAGS += -Wshadow
QMAKE_CXXFLAGS += -Wold-style-cast
QMAKE_CXXFLAGS += -Wnon-virtual-dtor
+2
View File
@@ -6,3 +6,5 @@ QMAKE_CXXFLAGS += -Werror
QMAKE_CXXFLAGS += -Wshadow
QMAKE_CXXFLAGS += -Wold-style-cast
QMAKE_CXXFLAGS += -Wnon-virtual-dtor