summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-12-15 12:18:04 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-12-18 21:39:33 +0000
commit60f78f7e9e984802290a483535db208152008472 (patch)
tree181e3d60c8c9fda5066b11119488f09b81838eee /tools
parent5d00d872012a20ce3e7bd6421d81780fd9a09e52 (diff)
downloadgobject-introspection-60f78f7e9e984802290a483535db208152008472.tar.gz
meson: add default compiler warning flags and enable -Werror on CI
This enables various compiler warnings project wide and disables the triggered ones for each library/executable. This should give us roughly the same behaviour as with autotools. Tested with gcc8 and clang7.
Diffstat (limited to 'tools')
-rw-r--r--tools/meson.build12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/meson.build b/tools/meson.build
index 65839c34..806441af 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -40,23 +40,35 @@ endforeach
girscanner = tool_output[0]
+custom_c_args = cc.get_supported_arguments([
+ '-Wno-missing-field-initializers',
+])
gircompiler = executable('g-ir-compiler', 'compiler.c',
dependencies: [
girepo_internals_dep,
girepo_dep,
],
install: true,
+ c_args: custom_c_args,
)
+custom_c_args = cc.get_supported_arguments([
+ '-Wno-missing-field-initializers',
+])
girgenerate = executable('g-ir-generate', 'generate.c',
dependencies: [
girepo_internals_dep,
girepo_dep,
],
install: true,
+ c_args: custom_c_args,
)
+custom_c_args = cc.get_supported_arguments([
+ '-Wno-missing-field-initializers',
+])
girinspect = executable('g-ir-inspect', 'g-ir-inspect.c',
dependencies: girepo_dep,
install: true,
+ c_args: custom_c_args,
)