Explicitly cast function pointer to (void *) in SET_WCB since all callbacks stored as void pointers
suppress gcc -Wall -pendantic "noise" git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@432 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
2ed416a592
commit
176108b5eb
@ -392,12 +392,12 @@ struct tagSFG_WindowState
|
|||||||
* and for no other reason. Since it's hidden in the macro, the
|
* and for no other reason. Since it's hidden in the macro, the
|
||||||
* ugliness is felt to be rather benign.
|
* ugliness is felt to be rather benign.
|
||||||
*/
|
*/
|
||||||
#define SET_WCB(window,cbname,func) \
|
#define SET_WCB(window,cbname,func) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
if( FETCH_WCB( window, cbname ) != func ) \
|
if( FETCH_WCB( window, cbname ) != func ) \
|
||||||
(((window).CallBacks[CB_ ## cbname]) = func); \
|
(((window).CallBacks[CB_ ## cbname]) = (void *) func); \
|
||||||
} while( 0 ) \
|
} while( 0 ) \
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FETCH_WCB() is used as:
|
* FETCH_WCB() is used as:
|
||||||
|
Reference in New Issue
Block a user