meson.build: disable -Wsuggest-override with GCC 8
This commit is contained in:
parent
0b0acb3981
commit
56c0733b42
|
@ -72,7 +72,6 @@ test_cxxflags = test_common_flags + [
|
||||||
'-Woverloaded-virtual',
|
'-Woverloaded-virtual',
|
||||||
'-Wshadow',
|
'-Wshadow',
|
||||||
'-Wsign-promo',
|
'-Wsign-promo',
|
||||||
'-Wsuggest-override',
|
|
||||||
'-Wunused',
|
'-Wunused',
|
||||||
'-Wvolatile',
|
'-Wvolatile',
|
||||||
'-Wvirtual-inheritance',
|
'-Wvirtual-inheritance',
|
||||||
|
@ -89,6 +88,12 @@ test_cxxflags = test_common_flags + [
|
||||||
'-Wused-but-marked-unused',
|
'-Wused-but-marked-unused',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if compiler.get_id() != 'gcc' or compiler.version().version_compare('>=9')
|
||||||
|
# The GCC 8 implementation of this flag is buggy: it complains even
|
||||||
|
# if "final" is present, which implies "override".
|
||||||
|
test_cxxflags += '-Wsuggest-override'
|
||||||
|
endif
|
||||||
|
|
||||||
test_cflags = test_common_flags + [
|
test_cflags = test_common_flags + [
|
||||||
'-Wcast-qual',
|
'-Wcast-qual',
|
||||||
'-Wmissing-prototypes',
|
'-Wmissing-prototypes',
|
||||||
|
|
Loading…
Reference in New Issue