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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 12 02:32:58 PST 2013


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





--- Comment #4 from Ryuan Choi <ryuan.choi at samsung.com>  2013-11-12 02:31:39 PST ---
(In reply to comment #3)
> Created an attachment (id=216650)
 --> (https://bugs.webkit.org/attachment.cgi?id=216650&action=review) [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?

-- 
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