diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-06-08 16:19:44 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-06-08 17:13:50 +0100 |
commit | 775f7220b9ef535bbb8994949a9c2eb8ffaaff1a (patch) | |
tree | a47c344293a0df554f72297d646c5b78ccf7f671 | |
parent | 52024eaad8e89b9f11e9eb62678ec57c710cbc70 (diff) | |
download | json-glib-775f7220b9ef535bbb8994949a9c2eb8ffaaff1a.tar.gz |
build: Be strict when generating introspection
We want all warnings, and we want warnings to be fatal.
-rw-r--r-- | json-glib/meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/json-glib/meson.build b/json-glib/meson.build index 70c3171..e13e688 100644 --- a/json-glib/meson.build +++ b/json-glib/meson.build @@ -97,7 +97,7 @@ gir = find_program('g-ir-scanner', required : get_option('introspection')) if gir.found() gir_args = [ '--quiet', - '--c-include=json-glib/json-glib.h', + '--warn-all', '-DJSON_COMPILATION', ] @@ -113,6 +113,7 @@ if gir.found() header: 'json-glib/json-glib.h', install: true, extra_args: gir_args, + fatal_warnings: true, ) else json_glib_gir = [] |