After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687685 - 'g_type_init' is deprecated
'g_type_init' is deprecated
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: 1.19
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2012-11-05 20:15 UTC by Dieter Verfaillie
Modified: 2012-11-06 09:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtkdoc-scangobj: don't call g_type_init() when GLib >= 2.35.0 (896 bytes, patch)
2012-11-05 20:15 UTC, Dieter Verfaillie
committed Details | Review

Description Dieter Verfaillie 2012-11-05 20:15:19 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
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2012-11-06 09:35:50 UTC
Thanks for the patch. This will be a pita for users that override the init part :/