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
+3 -2
View File
@@ -43,18 +43,19 @@ win32 {
SOURCES += src/tabcontrollers/audiomanager/AudioManagerWindows.cpp \
src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp
HEADERS += src/tabcontrollers/audiomanager/AudioManagerWindows.h \
src/tabcontrollers/audiomanager/IPolicyConfig.h \
src/tabcontrollers/keyboardinput/KeyboardInputWindows.h
}
win32-msvc {
INCLUDEPATH += third-party/openvr/headers \
third-party/easylogging++
third-party/easylogging++ \
third-party/policyconfig
}
win32-clang-msvc {
QMAKE_CXXFLAGS += /imsvc "$$PWD/../../third-party/openvr/headers"
QMAKE_CXXFLAGS += /imsvc "$$PWD/../../third-party/easylogging++"
QMAKE_CXXFLAGS += /imsvc "$$PWD/../../third-party/policyconfig"
}
# Anything g++ or clang