ci: Make introspection warnings fatal
authorColin Walters <walters@verbum.org>
Mon, 26 Jun 2017 22:12:33 +0000 (18:12 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 27 Jun 2017 11:56:44 +0000 (11:56 +0000)
Closes: #965
Approved by: pwithnall

.papr.yml
Makefile-libostree.am

index 1addf061a10207c1c2893366e701ea55e711889b..b2eeb97208015e2138c4c4262e955b09440b854f 100644 (file)
--- a/.papr.yml
+++ b/.papr.yml
@@ -15,6 +15,8 @@ env:
     # Enable all the sanitizers for this primary build.
     # We only use -Werror=maybe-uninitialized here with a "fixed" toolchain
     CFLAGS: '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address -O2 -Wp,-D_FORTIFY_SOURCE=2 -Werror=maybe-uninitialized'
+    # Only for CI with a known g-ir-scanner
+    GI_SCANNERFLAGS: '--warn-error'
     ASAN_OPTIONS: 'detect_leaks=0'  # Right now we're not fully clean, but this gets us use-after-free etc
     # TODO when we're doing leak checks: G_SLICE: "always-malloc"
 
index 8ff89e5269a510c275be595cc4d79bc6e6d7ef26..86c9693f7d83c83c07a3f758a794b6a820f1047e 100644 (file)
@@ -256,7 +256,7 @@ OSTree_1_0_gir_EXPORT_PACKAGES = ostree-1
 OSTree_1_0_gir_INCLUDES = Gio-2.0
 OSTree_1_0_gir_CFLAGS = $(libostree_1_la_CFLAGS)
 OSTree_1_0_gir_LIBS = libostree-1.la
-OSTree_1_0_gir_SCANNERFLAGS = --warn-all --identifier-prefix=Ostree --symbol-prefix=ostree
+OSTree_1_0_gir_SCANNERFLAGS = --warn-all --identifier-prefix=Ostree --symbol-prefix=ostree $(GI_SCANNERFLAGS)
 OSTree_1_0_gir_FILES = $(libostreeinclude_HEADERS) $(filter-out %-private.h %/ostree-soup-uri.h %/ostree-repo-finder.h %/ostree-repo-finder-avahi.h %/ostree-repo-finder-config.h %/ostree-repo-finder-mount.h,$(libostree_1_la_SOURCES))
 INTROSPECTION_GIRS += OSTree-1.0.gir
 gir_DATA += OSTree-1.0.gir