diff options
Diffstat (limited to 'src/render/modernopenglgraphics.h')
-rw-r--r-- | src/render/modernopenglgraphics.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index 4362ea20d..b9a40212c 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -42,12 +42,19 @@ #endif // USE_SDL2 PRAGMA48(GCC diagnostic push) PRAGMA48(GCC diagnostic ignored "-Wshadow") +// ignore -Wredundant-decls for SDL 1.2 +PRAGMA45(GCC diagnostic push) +PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") #include <SDL_opengl.h> +PRAGMA45(GCC diagnostic pop) PRAGMA48(GCC diagnostic pop) #if defined(__APPLE__) #include <OpenGL/glext.h> #elif !defined(__native_client__) +PRAGMA45(GCC diagnostic push) +PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") #include <GL/glext.h> +PRAGMA45(GCC diagnostic pop) #endif // defined(__APPLE__) #endif // ANDROID |