diff options
-rw-r--r-- | meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build index b4ce86e04..5ba58c5b8 100644 --- a/meson.build +++ b/meson.build @@ -72,7 +72,6 @@ test_cxxflags = test_common_flags + [ '-Woverloaded-virtual', '-Wshadow', '-Wsign-promo', - '-Wsuggest-override', '-Wunused', '-Wvolatile', '-Wvirtual-inheritance', @@ -89,6 +88,12 @@ test_cxxflags = test_common_flags + [ '-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 + [ '-Wcast-qual', '-Wmissing-prototypes', |