mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Enable GCC and Clang warnings for zero being used as a null pointer
This commit is contained in:
@@ -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
|
||||
################################
|
||||
|
||||
Reference in New Issue
Block a user