meson.build: add more C++ warning flags
This commit is contained in:
parent
1375dcc4ec
commit
0b0acb3981
|
@ -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',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue