From b013d28182ce582f229185c23b6011f566f1f8cc Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 22 Aug 2026 18:53:02 +0200 Subject: meson: Strip unneeded C compiler warnings when processing vala code These warnings arecompiler annoyances where the vala compiler creates C code that is usually unexpected in proper C code and thus triggers warnings. --- meson.build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 0fbe797d..df5a2b80 100644 --- a/meson.build +++ b/meson.build @@ -15,6 +15,7 @@ project( gnome = import('gnome') i18n = import('i18n') +cc = meson.get_compiler('c') # Trigger recomnfiguration on version change version_stamp = configure_file( @@ -33,6 +34,19 @@ version_stamp = configure_file( depfile: 'version.d' ) +# Reduce build time noise +vala_c_args = cc.get_supported_arguments([ + '-Wno-address', + '-Wno-deprecated-declarations', + '-Wno-discarded-qualifiers', + '-Wno-duplicate-decl-specifier', + '-Wno-unused-but-set-variable', + '-Wno-unused-function', + '-Wno-unused-label', + '-Wno-unused-value', + '-Wno-unused-variable', +]) + # plugin_crypto is enabled if any of the crypto plugins is enabled, auto if # none of them are explicitly enabled but at least one is set to auto, or # disabled if all of them are disabled. -- cgit v1.3