diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-15 12:18:04 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-18 21:39:33 +0000 |
commit | 60f78f7e9e984802290a483535db208152008472 (patch) | |
tree | 181e3d60c8c9fda5066b11119488f09b81838eee /tools | |
parent | 5d00d872012a20ce3e7bd6421d81780fd9a09e52 (diff) | |
download | gobject-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.build | 12 |
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, ) |