meson.build: add more C++ warning flags

This commit is contained in:
Max Kellermann 2021-05-25 21:30:04 +02:00
parent 1375dcc4ec
commit 0b0acb3981
1 changed files with 8 additions and 1 deletions

View File

@ -65,10 +65,17 @@ test_cxxflags = test_common_flags + [
'-fmerge-all-constants',
'-Wcast-qual',
'-Wcomma-subscript',
'-Wextra-semi',
'-Wmismatched-tags',
'-Wmissing-declarations',
'-Woverloaded-virtual',
'-Wshadow',
'-Wsign-promo',
'-Wsuggest-override',
'-Wunused',
'-Wvolatile',
'-Wvirtual-inheritance',
'-Wwrite-strings',
# a vtable without a dtor is just fine
@ -78,7 +85,7 @@ test_cxxflags = test_common_flags + [
'-Wcomma',
'-Wheader-hygiene',
'-Winconsistent-missing-destructor-override',
'-Wunreachable-code-break',
'-Wunreachable-code-aggressive',
'-Wused-but-marked-unused',
]