Disable Wstringop-overflow on global level because cannot suppress warnings in Qt headers.
This commit is contained in:
parent
a86ef76e5c
commit
b2f9d00182
|
@ -434,7 +434,8 @@ g++7:GCC_DEBUG_CXXFLAGS += \
|
|||
-Wduplicated-branches \
|
||||
-Wrestrict \
|
||||
-Walloc-zero \
|
||||
-Wnonnull
|
||||
-Wnonnull \
|
||||
-Wno-stringop-overflow # cannot suppress warning in Qt headers
|
||||
|
||||
# Since GCC 8
|
||||
g++8:GCC_DEBUG_CXXFLAGS += \
|
||||
|
|
|
@ -38,9 +38,6 @@ unix {
|
|||
QMAKE_LFLAGS += -fsanitize=undefined
|
||||
}
|
||||
}
|
||||
|
||||
QMAKE_CXXFLAGS += \
|
||||
-Wno-stringop-overflow
|
||||
}
|
||||
|
||||
*clang*{
|
||||
|
|
|
@ -37,9 +37,6 @@ unix {
|
|||
# want them in global list. Compromise decision delete them from local list.
|
||||
QMAKE_CXXFLAGS -= \
|
||||
-Wswitch-default
|
||||
|
||||
QMAKE_CXXFLAGS += \
|
||||
-Wno-stringop-overflow
|
||||
}
|
||||
|
||||
*clang*{
|
||||
|
|
Loading…
Reference in New Issue
Block a user