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 582243 - Build error on amd64
Build error on amd64
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
git master
Other All
: Normal minor
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2009-05-11 21:34 UTC by Florian Müllner
Modified: 2009-06-16 19:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-Fix-strict-aliasing.patch (1.07 KB, patch)
2009-05-11 21:36 UTC, Florian Müllner
none Details | Review

Description Florian Müllner 2009-05-11 21:34:03 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:
Comment 1 Florian Müllner 2009-05-11 21:36:41 UTC
Created attachment 134443 [details] [review]
0001-Fix-strict-aliasing.patch

Attaching a small patch which fixes the warnings and allows compilation to finish correctly.
Comment 2 Owen Taylor 2009-06-16 19:49:20 UTC
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().