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 141027 - gtktipsquery.c: gtk_tips_query_event - warning about deferencing type-punned pointer breaks strict aliasing rules
gtktipsquery.c: gtk_tips_query_event - warning about deferencing type-punned ...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.4.x
Other Linux
: Normal normal
: Small fix
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-04-24 19:03 UTC by Chris Sherlock
Modified: 2006-06-04 13:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (14.35 KB, patch)
2004-04-24 19:04 UTC, Chris Sherlock
none Details | Review
Proposed patch (314 bytes, patch)
2004-04-24 19:05 UTC, Chris Sherlock
committed Details | Review

Description Chris Sherlock 2004-04-24 19:03:32 UTC
gtk_tips_query_event fixed to prevent warning by gcc about it breaking strict
aliasing rules. Happens because gdk_window_get_user_data is expecting parameter
2 to be a gpointer*, however it's getting a GtkWidget.

Fixed by creating a gpointer variable pevent_widget for use in
gdk_window_get_user_data, then assign it's address to GtkWidget *event_widget.
Comment 1 Chris Sherlock 2004-04-24 19:04:15 UTC
Created attachment 27050 [details] [review]
Proposed patch
Comment 2 Chris Sherlock 2004-04-24 19:05:44 UTC
Created attachment 27051 [details] [review]
Proposed patch

*sigh* did it again... uploaded the full file, instead of the patch. Here is
the actual patch!
Comment 3 Christian Kirbach 2006-06-04 13:41:38 UTC
as far as I can see this has been commited or done by someone else.
Closing.