summaryrefslogtreecommitdiff
path: root/desktop/unx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-01-19 10:43:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-01-19 10:43:55 +0100
commitef219e719116fd02030503d4711b22894b9208c9 (patch)
treeb96fc0ec50385580149e945a29a280d4f03cfd2f /desktop/unx
parent352f9fdff619b5a0a1414c29cfc47068165a599c (diff)
-Werror=strict-aliasing (GCC 6)
Change-Id: I080315852db2f6e852f63f3965a2b7bf91529168
Diffstat (limited to 'desktop/unx')
-rw-r--r--desktop/unx/source/splashx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c
index e26c5302f823..d10ee89ddc40 100644
--- a/desktop/unx/source/splashx.c
+++ b/desktop/unx/source/splashx.c
@@ -304,7 +304,7 @@ static void create_pixmap(struct splash* splash)
else if ( bpp == 24 )
{
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 )
COPY_IN_OUT( 3, tmp = pixel;
*( (uint8_t *)out ) = *( (uint8_t *)(&tmp) + 1 );