From 9fe9e60012327a1361de567a23dfec78083fc6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 9 Feb 2024 20:24:13 +0000 Subject: [PATCH] aja: suppress compiler warnings for aja ntv2 subproject Part-of: --- subprojects/gst-plugins-bad/sys/aja/meson.build | 7 +++++-- subprojects/packagefiles/ntv2/meson.build | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/aja/meson.build b/subprojects/gst-plugins-bad/sys/aja/meson.build index 0f79a7cca3..e2f4dce81b 100644 --- a/subprojects/gst-plugins-bad/sys/aja/meson.build +++ b/subprojects/gst-plugins-bad/sys/aja/meson.build @@ -15,8 +15,11 @@ rt_dep = cxx.find_library('rt', required : false) aja_sdk_dir = get_option('aja-sdk-dir') if aja_sdk_dir == '' - ajantv2_dep = dependency('libajantv2', include_type: 'system', - required: aja_option, allow_fallback: true) + ajantv2_dep = dependency('libajantv2', + include_type: 'system', + required: aja_option, + allow_fallback: true, + default_options: ['warning_level=0']) if not ajantv2_dep.found() subdir_done() endif diff --git a/subprojects/packagefiles/ntv2/meson.build b/subprojects/packagefiles/ntv2/meson.build index 02db0a9b15..76804c7682 100644 --- a/subprojects/packagefiles/ntv2/meson.build +++ b/subprojects/packagefiles/ntv2/meson.build @@ -22,6 +22,13 @@ foreach cxxflag: test_cppflags endif endforeach +if get_option('warning_level') == '0' + add_project_arguments( + cxx.get_supported_arguments(['-Wno-deprecated-declarations']), + language: 'cpp', + ) +endif + thread_dep = dependency('threads') rt_dep = cxx.find_library('rt', required : false)