summaryrefslogtreecommitdiff
path: root/src/render/opengl/mgltypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/opengl/mgltypes.h')
-rw-r--r--src/render/opengl/mgltypes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/render/opengl/mgltypes.h b/src/render/opengl/mgltypes.h
index 874e4c9ff..bf5a34fc7 100644
--- a/src/render/opengl/mgltypes.h
+++ b/src/render/opengl/mgltypes.h
@@ -37,10 +37,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
#ifdef __native_client__
#include <GL/Regal.h>
@@ -50,7 +57,10 @@ PRAGMA48(GCC diagnostic pop)
#else // defined(__APPLE__)
#ifndef __glext_h_
// probably this include need for some os / libs
+PRAGMA45(GCC diagnostic push)
+PRAGMA45(GCC diagnostic ignored "-Wredundant-decls")
#include <GL/glext.h>
+PRAGMA45(GCC diagnostic pop)
// #error missing include <GL/glext.h>
#endif // __glext_h_
#endif // defined(__APPLE__)