summaryrefslogtreecommitdiff
path: root/desktop/unx/source/splashx.c
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-11 15:45:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-12 13:00:56 +0000
commit4dfd93a3b31e8e9421fff0c6b81cd6d4fb8f4103 (patch)
treedfc387f06617e67eb200cd6f97042ad18401d1c8 /desktop/unx/source/splashx.c
parentfb6477e5d10948e47b1279afc8fa2a350d75807f (diff)
cppcheck: silence warning
Diffstat (limited to 'desktop/unx/source/splashx.c')
-rw-r--r--desktop/unx/source/splashx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c
index 6e7088b42ca4..4e3a8bdddfdb 100644
--- a/desktop/unx/source/splashx.c
+++ b/desktop/unx/source/splashx.c
@@ -308,11 +308,10 @@ static void create_pixmap()
int bytes_per_line = image->bytes_per_line;
int bpp = image->bits_per_pixel;
int byte_order = image->byte_order;
- int machine_byte_order;
#if defined( _LITTLE_ENDIAN )
- machine_byte_order = LSBFirst;
+ int machine_byte_order = LSBFirst;
#elif defined( _BIG_ENDIAN )
- machine_byte_order = MSBFirst;
+ int machine_byte_order = MSBFirst;
#else
{
fprintf( stderr, "Unsupported machine endianity.\n" );