meson.build: disable -Wunused when building the litest selftest

We use check directly to test the various litest bits, so if ifdef out
the litest main() and a few other bits. This results in compiler
warnings that aren't worth fixing - a lot of moving code around for no
real benefit.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2021-12-23 08:18:06 +10:00
parent 5a568cfaf0
commit e4548f5805

View file

@ -835,7 +835,8 @@ if get_option('tests')
def_disable_backtrace = '-DLITEST_DISABLE_BACKTRACE_LOGGING'
defs_litest_selftest = [
def_no_main,
def_disable_backtrace
def_disable_backtrace,
'-Wno-unused',
]
test_litest_selftest_sources = [
'test/litest-selftest.c',