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

@@ -130,12 +130,6 @@ equals(WORD_SIZE,64)|!win32: disableSwiftConfig(sims.fsx, sims.fs9)
linux-g++: QMAKE_LFLAGS_DEBUG *= -rdynamic
################################
# Suppress stupid warnings
################################
include(warnings.pri)
################################
# Handle addresses larger than 2GB
################################
@@ -144,12 +138,27 @@ equals(WORD_SIZE,32) {
win32-g++: QMAKE_LFLAGS *= -Wl,--large-address-aware
}
################################
# Support different clang drivers
################################
defineReplace(clangArg) {
clang_cl: return(/clang:$$1)
else: return($$1)
}
################################
# Externals
################################
include(externals.pri)
################################
# Enable useful warnings, disable stupid ones
################################
include(warnings.pri)
################################
# Includes
################################