From 97f5adea8d026f9346af276d5cf49fab36a0d0d3 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Tue, 30 Dec 2003 02:51:32 +0000 Subject: [PATCH] Explicitly cast function pointer to (void *) in SET_WCB since all callbacks stored as void pointers suppress gcc -Wall -pendantic "noise" git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@432 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_internal.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index cea8ad8..a97e029 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -392,12 +392,12 @@ struct tagSFG_WindowState * and for no other reason. Since it's hidden in the macro, the * ugliness is felt to be rather benign. */ -#define SET_WCB(window,cbname,func) \ -do \ -{ \ - if( FETCH_WCB( window, cbname ) != func ) \ - (((window).CallBacks[CB_ ## cbname]) = func); \ -} while( 0 ) \ +#define SET_WCB(window,cbname,func) \ +do \ +{ \ + if( FETCH_WCB( window, cbname ) != func ) \ + (((window).CallBacks[CB_ ## cbname]) = (void *) func); \ +} while( 0 ) \ /* * FETCH_WCB() is used as: -- 1.7.10.4