build system: disable stringop-overflow warning

…due to too many false positives with libfmt. See
https://github.com/fmtlib/fmt/pull/2442#issuecomment-891263411
and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443
This commit is contained in:
Moritz Bunkus 2022-11-03 21:16:13 +01:00
parent 2c55c3d67e
commit 0cd6f01878
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -167,7 +167,7 @@ def setup_globals
cxxflags += " -Wno-extra-semi" if is_clang? || check_compiler_version("gcc", "8.0.0")
cxxflags += " -Wmisleading-indentation -Wduplicated-cond" if check_compiler_version("gcc", "6.0.0")
cxxflags += " -Wshadow-compatible-local -Wduplicated-branches" if check_compiler_version("gcc", "7.0.0")
cxxflags += " -Wno-deprecated-copy" if check_compiler_version("gcc", "9.0.0")
cxxflags += " -Wno-deprecated-copy -Wno-stringop-overflow" if check_compiler_version("gcc", "9.0.0")
cxxflags += " #{c(:QT_CFLAGS)} #{c(:BOOST_CPPFLAGS)} #{c(:USER_CXXFLAGS)}"
ldflags = ""