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/logger.h | |
parent | bab032c4999ab5a1c4da48c14c9a959c686f5da8 (diff) | |
download | mv-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.tar.gz mv-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.tar.bz2 mv-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.tar.xz mv-dda65b8fb01ac399af8fa44085db3cd9ab6cef2b.zip |
Add workaround for fix compilation warnings in SDL2.
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h index cdac1ffc5..abf2a72c1 100644 --- a/src/logger.h +++ b/src/logger.h @@ -25,6 +25,14 @@ #include "main.h" +#ifdef USE_SDL2 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wswitch-default" +#endif +#include <SDL_stdinc.h> +#ifdef USE_SDL2 +#pragma GCC diagnostic pop +#endif #include <SDL_mutex.h> #include <fstream> |