[Webkit-unassigned] [Bug 124153] [EFL] Disable -Werror when cross compiling

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 13 06:25:40 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=124153





--- Comment #8 from Gabor Rapcsanyi <rgabor at webkit.org>  2013-11-13 06:24:19 PST ---
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #4)
> > > (In reply to comment #3)
> > > > Created an attachment (id=216650)
 --> (https://bugs.webkit.org/attachment.cgi?id=216650&action=review) [details] [details] [details] [details]
> > > > warnings
> > > > 
> > > > We would like to make an ARM EFL bot but there are these warnings which block us. There are many 'increases required alignment of target type' warning because of -Wcast-align.
> > > > I made a small example and tried it on our ARM compiler (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)):
> > > > 
> > > > int main() {
> > > >   unsigned char* d1;
> > > >   short int d2;
> > > > 
> > > >   d2 = *reinterpret_cast<short int*>(d1);
> > > > }
> > > > 
> > > > g++ -Wcast-align main.cpp
> > > > main.cpp: In function ‘int main()’:
> > > > main.cpp:5:40: warning: cast from ‘unsigned char*’ to ‘short int*’ increases required alignment of target type [-Wcast-align]
> > > > 
> > > > 
> > > > With the x86 gcc there is no problem.
> > > > So while we fixing these warnings we would like to disable -Werror for cross compilation.
> > > 
> > > Can't we use reinterpret_cast_ptr for it if casting is fine?
> > 
> > Unfortunately this problem exists with the dependent libs as well:
> > /home/rgabor/WebKit/WebKitBuild/Dependencies/Root/include/eina-1/eina/eina_inline_hash.x:112:73: warning: cast from 'const unsigned char*' to 'const unsigned int*' increases required alignment of target type [-Wcast-align]
> > /home/rgabor/WebKit/WebKitBuild/Dependencies/Root/include/gstreamer-1.0/gst/gstbuffer.h:333:71: warning: cast from 'GstMiniObject* {aka _GstMiniObject*}' to 'GstBuffer* {aka _GstBuffer*}' increases required alignment of target type [-Wcast-align]
> 
> For EFL side, I landed https://git.enlightenment.org/core/efl.git/commit/?id=ec1ba326909fae86cf7738b8475bfd05bc2323cb
> 
> For jhbuild, I think that we can add the patch.
> Can we make similiar patch for gstreamer?

I will investigate this.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list