aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorD G Turner2019-09-30 01:18:52 +0100
committerD G Turner2019-09-30 01:21:35 +0100
commit16bce754d7d14497467b5e3d1ebaaf61718b054c (patch)
tree2cc97fbab49b1c62205c1da2395dd6852278fd66 /configure
parente0ae6b208087698fd1fa5870f870c70d74ba192c (diff)
downloadscummvm-rg350-16bce754d7d14497467b5e3d1ebaaf61718b054c.tar.gz
scummvm-rg350-16bce754d7d14497467b5e3d1ebaaf61718b054c.tar.bz2
scummvm-rg350-16bce754d7d14497467b5e3d1ebaaf61718b054c.zip
BUILD: Fix GCC Warning from Endianess Test Compilation
This is emitted when GCC is set with -Wall -Wextra by environment variables.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index b7654c4b42..aa1f446e3a 100755
--- a/configure
+++ b/configure
@@ -2319,10 +2319,10 @@ echo_n "Checking endianness... "
cat > tmp_endianness_check.cpp << EOF
unsigned short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
unsigned short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
-void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
+const char * _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; return s; }
unsigned short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
unsigned short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
-void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
+const char * _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; return s; }
int main() { _ascii (); _ebcdic (); return 0; }
EOF
$CXX $LDFLAGS $CXXFLAGS -o $TMPO$HOSTEXEEXT tmp_endianness_check.cpp