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/net/sdltcpnet.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/net/sdltcpnet.h') diff --git a/src/net/sdltcpnet.h b/src/net/sdltcpnet.h index be5879fb3..7d0a491c8 100644 --- a/src/net/sdltcpnet.h +++ b/src/net/sdltcpnet.h @@ -21,6 +21,14 @@ #ifndef NET_SDLTCPNET_H #define NET_SDLTCPNET_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-60-g2f50