summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-05 00:51:49 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-05 00:51:49 +0300
commit5fff083df4d1790d7a2af7ccaffa2f8d19d7e225 (patch)
tree816adde1c481c89911dd50030e25093daa63346f /src/test
parentf8afdaba205e46c9c1194208a7122a67962c478b (diff)
downloadManaVerse-5fff083df4d1790d7a2af7ccaffa2f8d19d7e225.tar.gz
ManaVerse-5fff083df4d1790d7a2af7ccaffa2f8d19d7e225.tar.bz2
ManaVerse-5fff083df4d1790d7a2af7ccaffa2f8d19d7e225.tar.xz
ManaVerse-5fff083df4d1790d7a2af7ccaffa2f8d19d7e225.zip
Fix compilation warnings with some flags.s20170605
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testlauncher.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp
index c94f72465..19b378b8c 100644
--- a/src/test/testlauncher.cpp
+++ b/src/test/testlauncher.cpp
@@ -503,6 +503,8 @@ int TestLauncher::testDye()
}
#if defined __linux__ || defined __linux
+#if defined(SIMD_SUPPORTED) || (SDL_BYTEORDER == SDL_LIL_ENDIAN \
+&& !defined(USE_SDL2))
static void calcTime(const char *const msg1,
const char *const msg2,
const timespec &time1,
@@ -517,6 +519,7 @@ static void calcTime(const char *const msg1,
printf("%s: %u\n", msg1, buf[0]);
printf("%s: %011ld\n", msg2, diff);
}
+#endif // defined(SIMD_SUPPORTED) || (SDL_BYTEORDER == SDL_LIL_ENDIAN
#ifdef SIMD_SUPPORTED
static void initBuffer(uint32_t *const buf,