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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 12 02:15:19 PST 2013


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





--- Comment #3 from Gabor Rapcsanyi <rgabor at webkit.org>  2013-11-12 02:14:00 PST ---
Created an attachment (id=216650)
 --> (https://bugs.webkit.org/attachment.cgi?id=216650&action=review)
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.

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