diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-12-23 08:18:06 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-12-23 08:18:06 +1000 |
commit | e4548f5805c8b6de6821f93069cfa2625c3feac6 (patch) | |
tree | fdc5ce8fa5878fc898503b69f4a8e4e4552c98bc | |
parent | 5a568cfaf0ac8350e3fab08bc121f7d358b29a24 (diff) | |
download | libinput-e4548f5805c8b6de6821f93069cfa2625c3feac6.tar.gz |
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>
-rw-r--r-- | meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 1813add9..8c233ae7 100644 --- a/meson.build +++ b/meson.build @@ -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', |