g-i: fix init section to avoid compiler warnings
authorThibault Saunier <tsaunier@gnome.org>
Tue, 19 Jan 2016 10:15:58 +0000 (11:15 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Tue, 19 Jan 2016 10:22:11 +0000 (11:22 +0100)
ges/Makefile.am

index 1223246..4cd18a8 100644 (file)
@@ -206,8 +206,8 @@ GES-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libges-@GST_API_VERSION@.la
                --pkg gstreamer-controller-@GST_API_VERSION@ \
                --pkg gio-2.0 \
                --pkg-export ges-@GST_API_VERSION@ \
-               --add-init-section="gst_init(NULL, NULL);" \
-               --add-init-section="ges_init(NULL, NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
+               --add-init-section="extern gboolean ges_init(void); ges_init();" \
                --output $@ \
                $(gir_headers) \
                $(gir_sources)