fix few warning builds.

This commit is contained in:
David Carlier 2024-06-30 23:07:03 +01:00
parent a315b15494
commit a8a15ddff3
No known key found for this signature in database
GPG key ID: F81D3D3D951B3052
2 changed files with 4 additions and 3 deletions

View file

@ -402,7 +402,8 @@ Sys_UnloadGame(void)
void *
Sys_GetGameAPI(void *parms)
{
void *(*GetGameAPI)(void *);
typedef void *(*fnAPI)(void *);
fnAPI GetGameAPI;
char name[MAX_OSPATH];
char *path;
@ -479,7 +480,7 @@ Sys_GetGameAPI(void *parms)
}
}
GetGameAPI = (void *)dlsym(game_library, "GetGameAPI");
GetGameAPI = (fnAPI)dlsym(game_library, "GetGameAPI");
if (!GetGameAPI)
{

View file

@ -67,7 +67,7 @@ int crosshair_width, crosshair_height;
extern cvar_t *cl_showfps;
extern cvar_t *crosshair_scale;
extern cvar_t *cl_showspeed;
extern float GetPlayerSpeed();
extern float GetPlayerSpeed(float *, float *);
void SCR_TimeRefresh_f(void);
void SCR_Loading_f(void);