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 712370 - Fix alignment warnings on ARM compiling
Fix alignment warnings on ARM compiling
Status: RESOLVED DUPLICATE of bug 776028
Product: glib
Classification: Platform
Component: gobject
2.36.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-11-15 14:59 UTC by Gabor Rapcsanyi
Modified: 2017-10-11 10:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed fix (1.03 KB, patch)
2013-11-15 14:59 UTC, Gabor Rapcsanyi
none Details | Review

Description Gabor Rapcsanyi 2013-11-15 14:59:04 UTC
Created attachment 259912 [details] [review]
proposed fix

In EFL WebKit we are using Glib and some header cause this warning:
increases required alignment of target type [-Wcast-align]

I uploaded a proposed fix for that issue.
Comment 1 Dan Winship 2013-11-16 14:58:06 UTC
Is this while compiling a C++ file? It really shouldn't be causing a warning in C...

Can you attach an example of the complete gcc error message?
Comment 2 Gabor Rapcsanyi 2013-11-18 10:51:02 UTC
(In reply to comment #1)
> Is this while compiling a C++ file? It really shouldn't be causing a warning in
> C...
> 
> Can you attach an example of the complete gcc error message?

For example:
/home/rgabor/WebKit/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp:87:51: warning: cast from 'GTypeInstance* {aka _GTypeInstance*}' to 'GstPipeline* {aka _GstPipeline*}' increases required alignment of target type [-Wcast-align]
/home/rgabor/WebKit/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp:108:22: warning: cast from 'GTypeInstance* {aka _GTypeInstance*}' to 'GstBin* {aka _GstBin*}' increases required alignment of target type [-Wcast-align]

AudioDestinationGStreamer.cpp:
line 87:GRefPtr<GstBus> bus = webkitGstPipelineGetBus(GST_PIPELINE(m_pipeline));
line 108: gst_bin_add_many(GST_BIN(m_pipeline), webkitAudioSrc, wavParser, NULL);

m_pipeline is a GstElement*


We have a bugreport in webkit bugzilla:
https://bugs.webkit.org/show_bug.cgi?id=124153
Comment 3 Philip Withnall 2017-10-11 10:34:03 UTC
See also a parallel bug for GStreamer: bug #712368.

I’m going to mark this as a duplicate of bug #776028, since the EFL port has been dropped from WebKit, so there’s unlikely to be any movement on this bug, ever.

*** This bug has been marked as a duplicate of bug 712368 ***
Comment 4 Philip Withnall 2017-10-11 10:34:26 UTC

*** This bug has been marked as a duplicate of bug 776028 ***