From 461e2316ad5315777e494d3a57fd28ac1f73cda5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 16 Dec 2021 16:09:57 -0500 Subject: MacOS: Fix warnings in unified ObjC++ test build --- test/meson.build | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test') 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), -- cgit v1.2.1