[Commits] SDL: Fixed compile warning

libsdl.org revision control commits-owner at libsdl.org
Fri Feb 9 16:32:01 PST 2018


details:   https://hg.libsdl.org/SDL/rev/54f9c701dc4b
changeset: 11860:54f9c701dc4b
user:      Sam Lantinga <slouken at libsdl.org>
date:      Fri Feb 09 16:31:57 2018 -0800
description:
Fixed compile warning

diffstat:

 src/render/opengles2/SDL_render_gles2.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7acd1b63cfc1 -r 54f9c701dc4b src/render/opengles2/SDL_render_gles2.c
--- a/src/render/opengles2/SDL_render_gles2.c	Fri Feb 09 16:01:11 2018 -0800
+++ b/src/render/opengles2/SDL_render_gles2.c	Fri Feb 09 16:31:57 2018 -0800
@@ -290,7 +290,7 @@
 #endif
 
 #if defined __SDL_NOGETPROCADDR__
-#define SDL_PROC(ret,func,params) data->func=func;
+#define SDL_PROC(ret,func,params) *(void**)&data->func=func;
 #else
 #define SDL_PROC(ret,func,params) \
     do { \


More information about the commits mailing list