summaryrefslogtreecommitdiff
path: root/src/resources/image
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/image')
-rw-r--r--src/resources/image/image.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/image/image.h b/src/resources/image/image.h
index b15ff7d33..c8b1e9150 100644
--- a/src/resources/image/image.h
+++ b/src/resources/image/image.h
@@ -42,10 +42,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
#endif // USE_OPENGL