From d1b7ab6b22cc99205ac890910e286859e30df40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Tue, 17 Nov 2020 17:14:42 +0000 Subject: [PATCH] [sdl] Turn tentative definition into actual definition. There is no need for a tentative definition in this case. By providing an explicit initializer, the resulting definition has the same effect as before, but is no longer tentative. This avoids easy errors resulting from multiple tentative definitions in different translation units. (Previous compilers permitted those common errors, but GCC 10 rejects them by default.) --- code/sdl/sdl_glimp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c index 4b284fdb..30986ab1 100644 --- a/code/sdl/sdl_glimp.c +++ b/code/sdl/sdl_glimp.c @@ -63,7 +63,7 @@ void (APIENTRYP qglMultiTexCoord2fARB) (GLenum target, GLfloat s, GLfloat t); void (APIENTRYP qglLockArraysEXT) (GLint first, GLsizei count); void (APIENTRYP qglUnlockArraysEXT) (void); -#define GLE(ret, name, ...) name##proc * qgl##name; +#define GLE(ret, name, ...) name##proc * qgl##name = NULL; QGL_1_1_PROCS; QGL_1_1_FIXED_FUNCTION_PROCS; QGL_DESKTOP_1_1_PROCS;