summaryrefslogtreecommitdiff
path: root/gl.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-04-20 15:03:43 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-04-20 15:03:43 -0400
commitadc0e91ddbe70c2127d39c337d9b4a09ea752425 (patch)
tree36d573976865ff5793812edb6ea3261799bfb742 /gl.c
parenta57a9682e74ff3609acb2ca6697fc6fa94c23fb6 (diff)
silence GCC warnings
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
}