aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed
diff options
context:
space:
mode:
authorD G Turner2019-08-25 08:20:02 +0100
committerD G Turner2019-08-25 08:20:02 +0100
commit5022d879565e86d00d4d9d103e13c3f56ee1476b (patch)
tree2d248076fb8566edff5a571ea01c5cbfbdcd0384 /engines/testbed
parent69452ccbe91514c7f3f34ee980813ba45bc75435 (diff)
downloadscummvm-rg350-5022d879565e86d00d4d9d103e13c3f56ee1476b.tar.gz
scummvm-rg350-5022d879565e86d00d4d9d103e13c3f56ee1476b.tar.bz2
scummvm-rg350-5022d879565e86d00d4d9d103e13c3f56ee1476b.zip
TESTBED: Fix GCC Unused Variable Compiler Warnings
Diffstat (limited to 'engines/testbed')
-rw-r--r--engines/testbed/encoding.cpp12
1 files 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