summaryrefslogtreecommitdiff
path: root/src/resources/safeopenglimagehelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/safeopenglimagehelper.h')
-rw-r--r--src/resources/safeopenglimagehelper.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/safeopenglimagehelper.h b/src/resources/safeopenglimagehelper.h
index 7b2098b11..31ff4dac4 100644
--- a/src/resources/safeopenglimagehelper.h
+++ b/src/resources/safeopenglimagehelper.h
@@ -46,10 +46,17 @@
#endif // HAVE_GLEXT
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)
#ifdef HAVE_GLEXT
+PRAGMA45(GCC diagnostic push)
+PRAGMA45(GCC diagnostic ignored "-Wredundant-decls")
#include <GL/glext.h>
+PRAGMA45(GCC diagnostic pop)
#endif // HAVE_GLEXT
#endif // ANDROID