[json-glib/gidocgen: 5/8] build: Be strict when generating introspection




commit 775f7220b9ef535bbb8994949a9c2eb8ffaaff1a
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]