Add clang switch to ignore third party warnings
The --system-header-prefix=third-party treats all includes with a path matching third-party as system files, meaning they won't show warnings.
This commit is contained in:
@@ -30,6 +30,7 @@ TEMPLATE = app
|
|||||||
|
|
||||||
*clang* {
|
*clang* {
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
QMAKE_CXXFLAGS += --system-header-prefix=third-party
|
||||||
}
|
}
|
||||||
SOURCES += src/main.cpp\
|
SOURCES += src/main.cpp\
|
||||||
src/overlaycontroller.cpp \
|
src/overlaycontroller.cpp \
|
||||||
|
|||||||
Reference in New Issue
Block a user