GNOME Bugzilla – Bug 582243
Build error on amd64
Last modified: 2009-06-16 19:49:20 UTC
Please describe the problem: With -Werror enabled (as defined in configure.in), compilation fails with the following warning: cc1: warnings being treated as errors compositor/mutter/mutter-module.c: In function ‘mutter_module_load’: compositor/mutter/mutter-module.c:67: warning: dereferencing type-punned pointer will break strict-aliasing rules compositor/mutter/mutter-module.c:69: warning: dereferencing type-punned pointer will break strict-aliasing rules make[4]: *** [mutter-module.o] Error 1 Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 134443 [details] [review] 0001-Fix-strict-aliasing.patch Attaching a small patch which fixes the warnings and allows compilation to finish correctly.
Pushed, with an expanded commit message [problem I don't think is related to x86_64 but to your particular verison of GCC. Recent versions of GCC seem to be smatter about these warnings.] commit ecde490967db00a637f6c1c9c73ff6983fc10de9 Author: Florian Muellner <florian.muellner@gmail.com> Date: Mon May 11 22:55:19 2009 +0200 Suppress strict aliasing warning Fix a (harmless) warning about strict aliasing that some GCC versions give when using g_module_symbol().