From 5022d879565e86d00d4d9d103e13c3f56ee1476b Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sun, 25 Aug 2019 08:20:02 +0100 Subject: TESTBED: Fix GCC Unused Variable Compiler Warnings --- engines/testbed/encoding.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/engines/testbed/encoding.cpp b/engines/testbed/encoding.cpp index 8fe2c6bf11..432da8b764 100644 --- a/engines/testbed/encoding.cpp +++ b/engines/testbed/encoding.cpp @@ -39,18 +39,20 @@ TestExitStatus Encodingtests::testConversionUnicodeMachineEndian() { } // |dolar| cent | euro | unsigned char utf8[] = {0x24, 0xC2, 0xA2, 0xE2, 0x82, 0xAC, 0}; +#ifdef SCUMM_BIG_ENDIAN //| dolar | cent | euro | unsigned char utf16be[] = {0, 0x24, 0, 0xA2, 0x20, 0xAC, 0, 0}; - //| dolar | cent | euro | - unsigned char utf16le[] = {0x24, 0, 0xA2, 0, 0xAC, 0x20, 0, 0}; //| dolar | cent | euro unsigned char utf32be[] = {0, 0, 0, 0x24, 0, 0, 0, 0xA2, 0, 0, 0x20, 0xAC, 0, 0, 0, 0}; - //| dolar | cent | euro - unsigned char utf32le[] = {0x24, 0, 0, 0, 0xA2, 0, 0, 0, 0xAC, 0x20, 0, 0, 0, 0, 0, 0}; -#ifdef SCUMM_BIG_ENDIAN + unsigned char *utf16 = utf16be; unsigned char *utf32 = utf32be; #else + //| dolar | cent | euro | + unsigned char utf16le[] = {0x24, 0, 0xA2, 0, 0xAC, 0x20, 0, 0}; + //| dolar | cent | euro + unsigned char utf32le[] = {0x24, 0, 0, 0, 0xA2, 0, 0, 0, 0xAC, 0x20, 0, 0, 0, 0, 0, 0}; + unsigned char *utf16 = utf16le; unsigned char *utf32 = utf32le; #endif -- cgit v1.2.3