mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
Fix some warnings and bitrot.
This commit is contained in:
parent
932647bad3
commit
2329fb1885
6 changed files with 7 additions and 5 deletions
|
@ -454,7 +454,7 @@ Mus_VolChange (cvar_t *bgmvolume)
|
|||
static void
|
||||
Mus_gamedir (int phase)
|
||||
{
|
||||
if (phase);
|
||||
if (phase)
|
||||
Mus_OggChange (mus_ogglist);
|
||||
}
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ midi_stream_read (void *file, float **buf)
|
|||
int res;
|
||||
byte *data = alloca (size);
|
||||
|
||||
res = WildMidi_GetOutput (mf->handle, (char *)data, size);
|
||||
res = WildMidi_GetOutput (mf->handle, (int8_t *)data, size);
|
||||
if (res <= 0) {
|
||||
stream->error = 1;
|
||||
return 0;
|
||||
|
|
|
@ -406,7 +406,7 @@ X11_SetVidMode (int width, int height)
|
|||
vid_gamma_avail = true;
|
||||
|
||||
temp = X11_GetGamma ();
|
||||
if (temp && temp[0] > 0) {
|
||||
if (temp && (*temp)[0] > 0) {
|
||||
x_gamma[0] = (*temp)[0];
|
||||
x_gamma[1] = (*temp)[1];
|
||||
x_gamma[2] = (*temp)[2];
|
||||
|
|
|
@ -736,7 +736,7 @@ LoadBrush (const mbrush_t *mb, int hullnum)
|
|||
CreateBrushFaces ();
|
||||
} else if (mb->detail) {
|
||||
face_t *f;
|
||||
for (f = brush_faces; f; f = f->next);
|
||||
for (f = brush_faces; f; f = f->next)
|
||||
f->detail = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -981,7 +981,7 @@ flow_make_edges (flowgraph_t *graph)
|
|||
flownode_t *node;
|
||||
set_iter_t *succ;
|
||||
|
||||
if (graph->edges);
|
||||
if (graph->edges)
|
||||
free (graph->edges);
|
||||
graph->edges = malloc (graph->num_edges * sizeof (flowedge_t));
|
||||
for (j = 0, i = 0; i < graph->num_nodes + 2; i++) {
|
||||
|
|
|
@ -442,6 +442,8 @@ keyword_or_id (char *token)
|
|||
#ifdef YY_FLEX_REALLOC_HACK
|
||||
static __attribute__ ((used)) void *(*const yy_flex_realloc_hack)(void *,yy_size_t) = yy_flex_realloc;
|
||||
#else
|
||||
#ifdef yyunput
|
||||
static __attribute__ ((used)) void (*yyunput_hack)(int, char*) = yyunput;
|
||||
#endif
|
||||
static __attribute__ ((used)) int (*input_hack)(void) = input;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue