From 0b0acb3981dc7f5fc855ce17db223cb480c88735 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 25 May 2021 21:30:04 +0200 Subject: [PATCH] meson.build: add more C++ warning flags --- meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f589b6ce0..b4ce86e04 100644 --- a/meson.build +++ b/meson.build @@ -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', ]