diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-20 15:03:43 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-20 15:03:43 -0400 |
commit | adc0e91ddbe70c2127d39c337d9b4a09ea752425 (patch) | |
tree | 36d573976865ff5793812edb6ea3261799bfb742 /gl.c | |
parent | a57a9682e74ff3609acb2ca6697fc6fa94c23fb6 (diff) |
silence GCC warnings
Diffstat (limited to 'gl.c')
-rw-r--r-- | gl.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 } |