From 8c7e633af83448d9d7f8791e25acf7c4356c2d85 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Dec 2016 21:53:24 +0300 Subject: Fix compilation warning with SDL 2. --- src/utils/buildhex.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/utils/buildhex.h') diff --git a/src/utils/buildhex.h b/src/utils/buildhex.h index f33295d30..e4ef5b6bd 100644 --- a/src/utils/buildhex.h +++ b/src/utils/buildhex.h @@ -21,6 +21,16 @@ #ifndef UTILS_BUILDHEX_H #define UTILS_BUILDHEX_H +#ifdef USE_SDL2 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wswitch-default" +#endif // USE_SDL2 +#include +_SDL_stdinc_h +#ifdef USE_SDL2 +#pragma GCC diagnostic pop +#endif // USE_SDL2 + #ifndef SDL_BIG_ENDIAN #include #endif // SDL_BYTEORDER -- cgit v1.2.3-60-g2f50