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 526103 - The G_TYPE_CHECK_CLASS_TYPE() macro does not emit a warning if a class structure is not of the expected type
The G_TYPE_CHECK_CLASS_TYPE() macro does not emit a warning if a class struct...
Product: glib
Classification: Platform
Component: gobject
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
Depends on:
Reported: 2008-04-04 05:29 UTC by Areg Beketovski
Modified: 2008-06-10 12:08 UTC
See Also:
GNOME target: ---
GNOME version: ---

The test case reproducing the bug (1021 bytes, text/plain)
2008-04-04 05:31 UTC, Areg Beketovski

Description Areg Beketovski 2008-04-04 05:29:29 UTC
According to the specification of the macro G_TYPE_CHECK_CLASS_TYPE() "Returns TRUE if g_class is a class structure of the type identified by g_type. Otherwise emits a warning and returns FALSE." Whenever class structure type does not match the type id, passed in for a second parameter, the warning is not get emitted.

The detailed bug description can be found at:
Comment 1 Areg Beketovski 2008-04-04 05:31:37 UTC
Created attachment 108590 [details]
The test case reproducing the bug
Comment 2 Tim Janik 2008-06-10 12:08:12 UTC
Thanks, this is a documentation bug and has been fixed in SVN:

2008-06-10 14:06:34  Tim Janik  <>
        * gobject/tmpl/gtype.sgml: fixed documentation regarding type checking
        macros that do and do not issue warnings.