From 5fff083df4d1790d7a2af7ccaffa2f8d19d7e225 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Jun 2017 00:51:49 +0300 Subject: Fix compilation warnings with some flags. --- src/test/testlauncher.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/test') 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, -- cgit v1.2.3-70-g09d2