Enable GCC and Clang warnings for zero being used as a null pointer

This commit is contained in:
Mat Sutcliffe
2020-04-21 18:11:50 +01:00
parent 20c6bef800
commit a7c696d385
5 changed files with 33 additions and 10 deletions

View File

@@ -39,6 +39,10 @@ else {
QMAKE_CXXFLAGS += -idirafter $$EXTERNALSROOT/common/include
}
llvm {
QMAKE_CXXFLAGS_WARN_ON *= $$clangArg(-isystem$$system_path($$EXTERNALSROOT/common/include))
}
equals(WORD_SIZE,64) {
EXTERNALS_BIN_DIR = $$EXTERNALSROOT/$$EXTERNALS_SPEC/64/bin
EXTERNALS_LIB_DIR = $$EXTERNALSROOT/$$EXTERNALS_SPEC/64/lib