summaryrefslogtreecommitdiff
path: root/gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl.c')
-rw-r--r--gl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gl.c b/gl.c
index a7f720f..8326de6 100644
--- a/gl.c
+++ b/gl.c
@@ -66,7 +66,14 @@ static int gl_version_minor;
static void gl_get_procs(void) {
#define gl_get_proc(upper, lower) gl##lower = (PFNGL##upper##PROC)SDL_GL_GetProcAddress("gl" #lower);
+#if __GNUC__ && !__clang__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wpedantic"
+#endif
gl_for_each_proc(gl_get_proc)
+#if __GNUC__ && !__clang__
+ #pragma GCC diagnostic pop
+#endif
#undef gl_get_proc
}