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 582711 - build fails due to cast warning in eel-background.c
build fails due to cast warning in eel-background.c
Status: RESOLVED INCOMPLETE
Product: nautilus
Classification: Core
Component: [obsolete] Backgrounds Emblems and Themes
2.27.x
Other Solaris
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-15 04:44 UTC by James Andrewartha
Modified: 2010-11-29 05:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28



Description James Andrewartha 2009-05-15 04:44:18 UTC
I'm jhbuilding from git, so -Werror is enabled, which turns this warning into an error:
eel-background.c: In function `eel_background_receive_dropped_color':
eel-background.c:1049: warning: cast increases required alignment of target type

The line in question is:
        channels = (guint16 *) selection_data->data;
Comment 1 A. Walton 2009-05-15 13:40:00 UTC
What architecture are you getting this on? Not seeing it on x86. I'm guessing ARM maybe?
Comment 2 David Adam 2009-05-15 13:42:59 UTC
This is SunOS manduba 5.11 snv_101 sun4u sparc SUNW,Ultra-Enterprise (OpenSolaris Nevada build 101 on UltraSPARC-IIs).
Comment 3 A. Walton 2009-05-15 13:53:47 UTC
 -         channels = (guint16 *) selection_data->data;
 +         channels = (guint16 *) (void *) selection_data->data;

Fix the bug for you? Can't test this, no access to the hardware.
Comment 4 David Adam 2009-05-15 17:17:26 UTC
Yes, that allows the compilation of eel-background.c to succeed. There are a large number of similar warnings from eel-canvas.c; if you would like some access to this hardware contact us over IRC (trs81 and Zanchey on irc.gnome.org).
Comment 5 James Andrewartha 2009-05-18 10:57:39 UTC
To be specific, the EEL_CANVAS_ITEM, EEL_CANVAS_RE, EEL_CANVAS_RECT etc. macros are giving the warnings.
Comment 6 Cosimo Cecchi 2010-10-13 14:18:30 UTC
EelBackground has been removed from git master; is there still a build issue for you on Solaris?
Comment 7 Fabio Durán Verdugo 2010-11-29 05:22:04 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!