Disable Wstringop-overflow on global level because cannot suppress warnings in Qt headers.

This commit is contained in:
Roman Telezhynskyi 2021-09-24 19:00:09 +03:00
parent a86ef76e5c
commit b2f9d00182
3 changed files with 2 additions and 7 deletions

View File

@ -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 += \

View File

@ -38,9 +38,6 @@ unix {
QMAKE_LFLAGS += -fsanitize=undefined
}
}
QMAKE_CXXFLAGS += \
-Wno-stringop-overflow
}
*clang*{

View File

@ -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*{