[Scummvm-git-logs] scummvm master -> 5022d879565e86d00d4d9d103e13c3f56ee1476b

digitall dgturner at iee.org
Sun Aug 25 09:22:16 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5022d87956 TESTBED: Fix GCC Unused Variable Compiler Warnings


Commit: 5022d879565e86d00d4d9d103e13c3f56ee1476b
    https://github.com/scummvm/scummvm/commit/5022d879565e86d00d4d9d103e13c3f56ee1476b
Author: D G Turner (digitall at scummvm.org)
Date: 2019-08-25T08:20:02+01:00

Commit Message:
TESTBED: Fix GCC Unused Variable Compiler Warnings

Changed paths:
    engines/testbed/encoding.cpp


diff --git a/engines/testbed/encoding.cpp b/engines/testbed/encoding.cpp
index 8fe2c6b..432da8b 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





More information about the Scummvm-git-logs mailing list