aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2026-08-22 18:53:02 +0200
committerMarvin W <git@larma.de>2026-10-23 16:58:30 +0200
commitb013d28182ce582f229185c23b6011f566f1f8cc (patch)
tree0b9f69a0d607d5d512cbf3d33f2476f57bc3c586 /meson.build
parentc71601077699df8464fce4cf9dc11bea598c071e (diff)
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.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build14
1 files changed, 14 insertions, 0 deletions
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.