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