[vala/wip/meson: 3/11] meson: Compile everything with stricter cflags
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/meson: 3/11] meson: Compile everything with stricter cflags
- Date: Tue, 8 Mar 2022 10:32:46 +0000 (UTC)
commit 29b60e0c1a0e7942e5be86559c4fd2e0dfb57ca3
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Sep 7 17:57:31 2020 +0200
meson: Compile everything with stricter cflags
meson.build | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/meson.build b/meson.build
index dc65418d6..d3d2b055b 100644
--- a/meson.build
+++ b/meson.build
@@ -130,6 +130,11 @@ test_cflags = [
]
supported_test_cflags = cc.get_supported_arguments(test_cflags)
+# https://github.com/mesonbuild/meson/issues/3407
+if valac.version().version_compare('>= @0@'.format(vala_version))
+ add_project_arguments(supported_test_cflags, language: 'c')
+endif
+
add_project_arguments([
'-Wno-discarded-qualifiers',
'-Wno-incompatible-pointer-types',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]