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:
@@ -11,3 +11,5 @@ QMAKE_CXXFLAGS += /std:c++17
|
||||
QMAKE_CXXFLAGS += -Xclang -Wshadow
|
||||
|
||||
QMAKE_CXXFLAGS += -Wold-style-cast
|
||||
|
||||
QMAKE_CXXFLAGS += -Wnon-virtual-dtor
|
||||
|
||||
@@ -5,3 +5,5 @@ QMAKE_CXXFLAGS += --system-header-prefix=third-party
|
||||
QMAKE_CXXFLAGS += -Wshadow
|
||||
|
||||
QMAKE_CXXFLAGS += -Wold-style-cast
|
||||
|
||||
QMAKE_CXXFLAGS += -Wnon-virtual-dtor
|
||||
|
||||
@@ -6,3 +6,5 @@ QMAKE_CXXFLAGS += -Werror
|
||||
QMAKE_CXXFLAGS += -Wshadow
|
||||
|
||||
QMAKE_CXXFLAGS += -Wold-style-cast
|
||||
|
||||
QMAKE_CXXFLAGS += -Wnon-virtual-dtor
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user