summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-11 08:58:54 -0500
committerDavid Robillard <d@drobilla.net>2022-12-11 11:31:14 -0500
commita53e1d1a5a4efdfa9d1cfac5ac8391cfe685e286 (patch)
treef02b4bd5406fdf2b926b614aedc2b96af1d95402
parent09eb752cf245c33326bc98f8292ec04d477ab121 (diff)
downloadlilv-a53e1d1a5a4efdfa9d1cfac5ac8391cfe685e286.tar.gz
lilv-a53e1d1a5a4efdfa9d1cfac5ac8391cfe685e286.tar.bz2
lilv-a53e1d1a5a4efdfa9d1cfac5ac8391cfe685e286.zip
Suppress warnings in C++ test
-rw-r--r--test/cpp/meson.build19
1 files changed, 18 insertions, 1 deletions
diff --git a/test/cpp/meson.build b/test/cpp/meson.build
index 6451b0c..e91dd16 100644
--- a/test/cpp/meson.build
+++ b/test/cpp/meson.build
@@ -1,12 +1,29 @@
# Copyright 2020-2022 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
+cpp_suppressions = []
+if cpp.get_id() == 'gcc'
+ cpp_suppressions += [
+ '-Wno-cast-align',
+ '-Wno-padded',
+ '-Wno-cast-align',
+ ]
+elif cpp.get_id() == 'clang'
+ cpp_suppressions += [
+ '-Wno-cast-align',
+ '-Wno-cast-qual',
+ '-Wno-documentation-unknown-command',
+ '-Wno-padded',
+ '-Wno-reserved-id-macro',
+ ]
+endif
+
test(
'lilv_hpp',
executable(
'test_lilv_hpp',
files('test_lilv_hpp.cpp'),
- c_args: test_args + c_suppressions,
+ cpp_args: test_args + cpp_suppressions,
dependencies: [lv2_dep, lilv_static_dep],
include_directories: include_directories('../../src'),
),