]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
meson: Compile everything with stricter cflags
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 7 Sep 2020 15:57:31 +0000 (17:57 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 28 Jan 2022 08:08:50 +0000 (09:08 +0100)
meson.build

index 41a3098a11007274915ff91cad7242b2ba5f5df0..68e3765f62d79fbdee2bec56f29654aece1c26ba 100644 (file)
@@ -122,6 +122,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',