diff options
author | David Robillard <d@drobilla.net> | 2021-12-16 16:09:57 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-12-16 16:09:57 -0500 |
commit | 461e2316ad5315777e494d3a57fd28ac1f73cda5 (patch) | |
tree | 9a7cdaa7384b18b683b76628fb814d7f58f233bb /test | |
parent | 17fa2a0d5d4d0556bf8dfa77609220c6feb98bda (diff) | |
download | pugl-461e2316ad5315777e494d3a57fd28ac1f73cda5.tar.gz pugl-461e2316ad5315777e494d3a57fd28ac1f73cda5.tar.bz2 pugl-461e2316ad5315777e494d3a57fd28ac1f73cda5.zip |
MacOS: Fix warnings in unified ObjC++ test build
Diffstat (limited to 'test')
-rw-r--r-- | test/meson.build | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/meson.build b/test/meson.build index a50b6c7..ac66e92 100644 --- a/test/meson.build +++ b/test/meson.build @@ -127,8 +127,19 @@ if host_machine.system() == 'darwin' add_languages(['objcpp']) objcpp = meson.get_compiler('objcpp') + + objcpp_args = [] + if objcpp.get_id() == 'clang' + objcpp_args += [ + '-Wno-c++98-compat', + '-Wno-c++98-compat-pedantic', + '-Wno-deprecated-declarations', + '-Wno-direct-ivar-access', + ] + endif + unified_args += objcpp.get_supported_arguments( - c_warnings + test_cpp_args + objc_warnings) + c_warnings + test_cpp_args + objcpp_args) executable('inline_objcpp', 'test_inline_objcpp.mm', include_directories: include_directories(includes), |