GNOME Bugzilla – Bug 141066
queryimmodules.c: query_module - warning: dereferencing type-punned pointer will break strict-aliasing rules
Last modified: 2013-02-11 05:16:41 UTC
Same reason as for bug reports: * Bug 140346: libmoduletestplugin_a.c gives type-punned warning when compiling glibc-2.2.3 * Bug 141010: When compiling queryloaders.c gcc generates warning that dereferencing type-punned pointer breaks strict-aliasing * Bug 141020: gtkmain.c: multiple warnings about deferencing type-punned pointer breaks strict aliasing rules * Bug 141024: gtkselection.c: gtk_selection_convert - warning about deferencing type-punned pointer breaking strict aliasing rules * Bug 141027: gtktipsquery.c: gtk_tips_query_event - warning about deferencing type-punned pointer breaks strict aliasing rules * Bug 141030: gtkwidget.c: gtk_widget_reparent_subwindows - warning about deferencing type-punned pointer breaking strict aliasing rules
Created attachment 27069 [details] [review] Proposed patch
patch still applies and fixes the warnings
Note that these kind of patches just hide the warning, they don't actually fix the problem.
The proper fix is something like what's in bug 335853
closing old bugs, no need to keep bugs about compiler warnings open for decades