Kaydet (Commit) ef219e71 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror=strict-aliasing (GCC 6)

Change-Id: I080315852db2f6e852f63f3965a2b7bf91529168
üst 352f9fdf
...@@ -304,7 +304,7 @@ static void create_pixmap(struct splash* splash) ...@@ -304,7 +304,7 @@ static void create_pixmap(struct splash* splash)
else if ( bpp == 24 ) else if ( bpp == 24 )
{ {
if ( machine_byte_order == byte_order && byte_order == LSBFirst ) if ( machine_byte_order == byte_order && byte_order == LSBFirst )
COPY_IN_OUT( 3, *( (color_t *)out ) = *( (color_t *)( &pixel ) ); out += 3; ) COPY_IN_OUT( 3, memcpy(out, &pixel, sizeof (color_t)); out += 3; )
else if ( machine_byte_order == byte_order && byte_order == MSBFirst ) else if ( machine_byte_order == byte_order && byte_order == MSBFirst )
COPY_IN_OUT( 3, tmp = pixel; COPY_IN_OUT( 3, tmp = pixel;
*( (uint8_t *)out ) = *( (uint8_t *)(&tmp) + 1 ); *( (uint8_t *)out ) = *( (uint8_t *)(&tmp) + 1 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment