Merge pull request #1118 from devnexen/few_more_build_chg

fix few warning builds.
This commit is contained in:
Yamagi 2024-07-06 09:50:37 +02:00 committed by GitHub
commit 3f6a0a3689
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);