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...
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gobject
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-04-04 05:29 UTC by Areg Beketovski
Modified: 2008-06-10 12:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


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

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: 

http://linuxtesting.org/results/report?num=D0078
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  <timj@imendio.com>
        * gobject/tmpl/gtype.sgml: fixed documentation regarding type checking
        macros that do and do not issue warnings.