build system: no deprecated-copy warnings on gcc ≥ 9

Too many warnings at this point.
This commit is contained in:
Moritz Bunkus 2019-08-08 19:03:16 +02:00
parent 02a074b61f
commit ea62983378
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -155,6 +155,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 += " #{c(:QT_CFLAGS)} #{c(:BOOST_CPPFLAGS)} #{c(:USER_CXXFLAGS)}"
ldflags = ""