Fixed issue with not-used variables
Fixed issue with function casting
}
void (*fp) (Draw_Interpretor&) = NULL;
- fp = (void (*)(Draw_Interpretor&) )aFunc;
+ fp = (void (*)(Draw_Interpretor&) )(void*)aFunc;
(*fp) (theDI);
}
}
return true;
#else
+ (void)theLength;
if (theBuffer != NULL)
{
Message::SendFail ("Error: no image library available");
}
return true;
#else
+ (void)theStream;
+ (void)theExtension;
Message::SendFail ("Error: no image library available");
return false;
#endif
&& myFuncs->glXSwapIntervalEXT != NULL)
{
typedef int (*glXSwapIntervalEXT_t_x)(Display* theDisplay, GLXDrawable theDrawable, int theInterval);
- glXSwapIntervalEXT_t_x aFuncPtr = (glXSwapIntervalEXT_t_x )myFuncs->glXSwapIntervalEXT;
+ glXSwapIntervalEXT_t_x aFuncPtr = (glXSwapIntervalEXT_t_x )(void*)myFuncs->glXSwapIntervalEXT;
aFuncPtr ((Display* )myDisplay, (GLXDrawable )myWindow, theInterval);
return Standard_True;
}
}
else
f = theMapOfFunctions(pid);
-
Standard_Transient* (*fp) (const Standard_GUID&) = NULL;
- fp = (Standard_Transient* (*)(const Standard_GUID&)) f;
+ fp = (Standard_Transient* (*)(const Standard_GUID&))(void*)f;
Handle(Standard_Transient) theServiceFactory = (*fp) (aGUID);
return theServiceFactory;