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
This commit is contained in:
Benjamin Robin 2020-05-06 23:02:39 +02:00
parent 683d0bc041
commit 0454681395
1 changed files with 0 additions and 9 deletions

View 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',