[json-glib/gidocgen: 5/7] build: Be strict when generating introspection
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib/gidocgen: 5/7] build: Be strict when generating introspection
- Date: Tue, 8 Jun 2021 15:23:20 +0000 (UTC)
commit 52a457b2f98be192cb308cb1be33e847f4ddf70a
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Jun 8 16:19:44 2021 +0100
build: Be strict when generating introspection
We want all warnings, and we want warnings to be fatal.
json-glib/meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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 = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]