diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-28 19:32:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-28 20:26:00 +0300 |
commit | dda65b8fb01ac399af8fa44085db3cd9ab6cef2b (patch) | |
tree | b1ce9789df7284f3701c191f36ae50d1b60ea262 /src/utils/sdl2helper.h | |
parent | bab032c4999ab5a1c4da48c14c9a959c686f5da8 (diff) | |
download | manaplus-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.tar.gz manaplus-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.tar.bz2 manaplus-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.tar.xz manaplus-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.zip |
Add workaround for fix compilation warnings in SDL2.
Diffstat (limited to 'src/utils/sdl2helper.h')
-rw-r--r-- | src/utils/sdl2helper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.h b/src/utils/sdl2helper.h index d1b918b51..7cf471542 100644 --- a/src/utils/sdl2helper.h +++ b/src/utils/sdl2helper.h @@ -24,6 +24,10 @@ #ifdef USE_SDL2 #include "utils/stringvector.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wswitch-default" +#include <SDL_stdinc.h> +#pragma GCC diagnostic pop #include <SDL_thread.h> #include "localconsts.h" |