Merge pull request #843 from devnexen/fbsd_build_warnings

freebsd/clang and server only warnings build fix
This commit is contained in:
Yamagi 2022-06-07 14:20:59 +02:00 committed by GitHub
commit 1cd347beb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

View file

@ -1042,8 +1042,8 @@ RotatedBBox (const vec3_t mins, const vec3_t maxs, vec3_t angles, vec3_t tmins,
for (i=0 ; i<3 ; i++) for (i=0 ; i<3 ; i++)
{ {
tmins[i] = INT_MAX; // Set maximum values for world range tmins[i] = (vec_t)INT_MAX; // Set maximum values for world range
tmaxs[i] = INT_MIN; // Set minimal values for world range tmaxs[i] = (vec_t)INT_MIN; // Set minimal values for world range
} }
AngleVectors (angles, forward, right, up); AngleVectors (angles, forward, right, up);

View file

@ -554,8 +554,8 @@ CalcSurfaceExtents (model_t *loadmodel, msurface_t *s)
mtexinfo_t *tex; mtexinfo_t *tex;
int bmins[2], bmaxs[2]; int bmins[2], bmaxs[2];
mins[0] = mins[1] = INT_MAX; // Set maximum values for world range mins[0] = mins[1] = (float)INT_MAX; // Set maximum values for world range
maxs[0] = maxs[1] = INT_MIN; // Set minimal values for world range maxs[0] = maxs[1] = (float)INT_MIN; // Set minimal values for world range
tex = s->texinfo; tex = s->texinfo;

View file

@ -1172,8 +1172,8 @@ R_DrawPoly(int iswater, espan_t *spans)
// find the top and bottom vertices, and make sure there's at least one scan to // find the top and bottom vertices, and make sure there's at least one scan to
// draw // draw
ymin = INT_MAX; // Set maximum values for world range ymin = (float)INT_MAX; // Set maximum values for world range
ymax = INT_MIN; // Set minimal values for world range ymax = (float)INT_MIN; // Set minimal values for world range
pverts = r_polydesc.pverts; pverts = r_polydesc.pverts;
for (i=0 ; i<r_polydesc.nump ; i++) for (i=0 ; i<r_polydesc.nump ; i++)

View file

@ -81,6 +81,7 @@ char userGivenGame[MAX_QPATH];
// Hack for the signal handlers. // Hack for the signal handlers.
qboolean quitnextframe; qboolean quitnextframe;
#ifndef DEDICATED_ONLY
static inline void Sys_CpuPause(void) static inline void Sys_CpuPause(void)
{ {
#if defined(__GNUC__) #if defined(__GNUC__)
@ -99,6 +100,7 @@ static inline void Sys_CpuPause(void)
#endif #endif
#endif #endif
} }
#endif
static void Qcommon_Frame(int usec); static void Qcommon_Frame(int usec);