]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Do not drop warnings (unused variable) when NDEBUG is defined 15733/head
authorBenjamin Robin <dev@benjarobin.fr>
Wed, 6 May 2020 21:02:39 +0000 (23:02 +0200)
committerBenjamin Robin <dev@benjarobin.fr>
Wed, 6 May 2020 21:03:25 +0000 (23:03 +0200)
This is no longer needed, since there is now no warning with NDEBUG
defined

meson.build

index bf353cd1f7284375951c8bb440bd89ded1c01ed5..a922f9a2f1c114daaa42cfb4db4e10a8cc27a374 100644 (file)
@@ -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',