mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
fix few warning builds.
This commit is contained in:
parent
a315b15494
commit
a8a15ddff3
2 changed files with 4 additions and 3 deletions
|
@ -402,7 +402,8 @@ Sys_UnloadGame(void)
|
||||||
void *
|
void *
|
||||||
Sys_GetGameAPI(void *parms)
|
Sys_GetGameAPI(void *parms)
|
||||||
{
|
{
|
||||||
void *(*GetGameAPI)(void *);
|
typedef void *(*fnAPI)(void *);
|
||||||
|
fnAPI GetGameAPI;
|
||||||
|
|
||||||
char name[MAX_OSPATH];
|
char name[MAX_OSPATH];
|
||||||
char *path;
|
char *path;
|
||||||
|
@ -479,7 +480,7 @@ Sys_GetGameAPI(void *parms)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GetGameAPI = (void *)dlsym(game_library, "GetGameAPI");
|
GetGameAPI = (fnAPI)dlsym(game_library, "GetGameAPI");
|
||||||
|
|
||||||
if (!GetGameAPI)
|
if (!GetGameAPI)
|
||||||
{
|
{
|
||||||
|
|
|
@ -67,7 +67,7 @@ int crosshair_width, crosshair_height;
|
||||||
extern cvar_t *cl_showfps;
|
extern cvar_t *cl_showfps;
|
||||||
extern cvar_t *crosshair_scale;
|
extern cvar_t *crosshair_scale;
|
||||||
extern cvar_t *cl_showspeed;
|
extern cvar_t *cl_showspeed;
|
||||||
extern float GetPlayerSpeed();
|
extern float GetPlayerSpeed(float *, float *);
|
||||||
|
|
||||||
void SCR_TimeRefresh_f(void);
|
void SCR_TimeRefresh_f(void);
|
||||||
void SCR_Loading_f(void);
|
void SCR_Loading_f(void);
|
||||||
|
|
Loading…
Reference in a new issue