From 0454681395fc2747f2c135596e66e102b2708824 Mon Sep 17 00:00:00 2001 From: Benjamin Robin Date: Wed, 6 May 2020 23:02:39 +0200 Subject: [PATCH] meson: Do not drop warnings (unused variable) when NDEBUG is defined This is no longer needed, since there is now no warning with NDEBUG defined --- meson.build | 9 --------- 1 file changed, 9 deletions(-) diff --git a/meson.build b/meson.build index bf353cd1f72..a922f9a2f1c 100644 --- a/meson.build +++ b/meson.build @@ -335,15 +335,6 @@ basic_disabled_warnings = [ '-Wno-unused-result', '-Wno-format-signedness', ] -if get_option('b_ndebug') == 'true' - # With asserts disabled with get a bunch of warnings about variables which - # are used only in the asserts. This is not useful at all, so let's just silence - # those warnings. - basic_disabled_warnings += [ - '-Wno-unused-variable', - '-Wno-unused-but-set-variable', - ] -endif possible_cc_flags = [ '-Werror=undef', -- 2.47.3