From dda65b8fb01ac399af8fa44085db3cd9ab6cef2b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Apr 2016 19:32:40 +0300 Subject: Add workaround for fix compilation warnings in SDL2. --- src/resources/screenshothelper.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/resources') diff --git a/src/resources/screenshothelper.h b/src/resources/screenshothelper.h index d74abfd73..6982c681a 100644 --- a/src/resources/screenshothelper.h +++ b/src/resources/screenshothelper.h @@ -23,6 +23,14 @@ #ifndef RESOURCES_SCREENSHOTHELPER_H #define RESOURCES_SCREENSHOTHELPER_H +#ifdef USE_SDL2 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wswitch-default" +#endif +#include +#ifdef USE_SDL2 +#pragma GCC diagnostic pop +#endif #include #include "localconsts.h" -- cgit v1.2.3-70-g09d2