From 97181fd661dad5d63faab7702f880916a82ff893 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 25 Sep 2021 13:37:23 +0300 Subject: [PATCH] It seems -Wstringop-overflow issued during the LTO stage. --- common.pri | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/common.pri b/common.pri index eabee0196..029c2f09f 100644 --- a/common.pri +++ b/common.pri @@ -419,12 +419,16 @@ g++6:GCC_DEBUG_CXXFLAGS += \ -Wmisleading-indentation # Since GCC 7 -g++7:GCC_DEBUG_CXXFLAGS += \ - -Wduplicated-branches \ - -Wrestrict \ - -Walloc-zero \ - -Wnonnull \ - -Wno-stringop-overflow # cannot suppress warning in Qt headers +g++7{ + GCC_DEBUG_CXXFLAGS += \ + -Wduplicated-branches \ + -Wrestrict \ + -Walloc-zero \ + -Wnonnull \ + -Wno-stringop-overflow # cannot suppress warning in Qt headers + + QMAKE_LFLAGS += -Wno-stringop-overflow # cannot suppress warning in Qt headers +} # Since GCC 8 g++8:GCC_DEBUG_CXXFLAGS += \