GNOME Bugzilla – Bug 687685
'g_type_init' is deprecated
Last modified: 2012-11-06 09:36:07 UTC
Created attachment 228185 [details] [review] gtkdoc-scangobj: don't call g_type_init() when GLib >= 2.35.0 When having the latest GLib installed (from git via jhbuild) and building documentation with the latest GTK-Doc (also from git via jhbuild), a deprecation warning is shown during the "Introspecting gobjects" phase. Attached patch attempts to fix this. For example: Making all in docs make[2]: Entering directory `/home/dieterv/gnome.org/checkout/gobject-introspection/docs' Making all in reference make[3]: Entering directory `/home/dieterv/gnome.org/checkout/gobject-introspection/docs/reference' DOC Scanning header files DOC Introspecting gobjects gi-scan.c: In function 'main': gi-scan.c:84:3: warning: 'g_type_init' is deprecated (declared at /home/dieterv/gnome.org/prefix/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations] DOC Building XML
Thanks for the patch. This will be a pita for users that override the init part :/