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
* and for no other reason. Since it's hidden in the macro, the
* ugliness is felt to be rather benign.
*/
* 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:
/*
* FETCH_WCB() is used as: