GNOME Bugzilla – Bug 141027
gtktipsquery.c: gtk_tips_query_event - warning about deferencing type-punned pointer breaks strict aliasing rules
Last modified: 2006-06-04 13:41:38 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.
Created attachment 27050 [details] [review] Proposed patch
Created attachment 27051 [details] [review] Proposed patch *sigh* did it again... uploaded the full file, instead of the patch. Here is the actual patch!
as far as I can see this has been commited or done by someone else. Closing.