From: Benjamin Robin Date: Wed, 6 May 2020 21:02:39 +0000 (+0200) Subject: meson: Do not drop warnings (unused variable) when NDEBUG is defined X-Git-Tag: v246-rc1~424^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15733%2Fhead;p=thirdparty%2Fsystemd.git 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 --- 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',