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 \
|
-Wduplicated-branches \
|
||||||
-Wrestrict \
|
-Wrestrict \
|
||||||
-Walloc-zero \
|
-Walloc-zero \
|
||||||
-Wnonnull
|
-Wnonnull \
|
||||||
|
-Wno-stringop-overflow # cannot suppress warning in Qt headers
|
||||||
|
|
||||||
# Since GCC 8
|
# Since GCC 8
|
||||||
g++8:GCC_DEBUG_CXXFLAGS += \
|
g++8:GCC_DEBUG_CXXFLAGS += \
|
||||||
|
|
|
@ -38,9 +38,6 @@ unix {
|
||||||
QMAKE_LFLAGS += -fsanitize=undefined
|
QMAKE_LFLAGS += -fsanitize=undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-Wno-stringop-overflow
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*clang*{
|
*clang*{
|
||||||
|
|
|
@ -37,9 +37,6 @@ unix {
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
QMAKE_CXXFLAGS -= \
|
QMAKE_CXXFLAGS -= \
|
||||||
-Wswitch-default
|
-Wswitch-default
|
||||||
|
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-Wno-stringop-overflow
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*clang*{
|
*clang*{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user