mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-12 13:42:21 +00:00
warning fixes for gcc 2.95
This commit is contained in:
parent
947059f421
commit
d40e209c3e
7 changed files with 20 additions and 2 deletions
|
@ -1673,6 +1673,8 @@ void CL_AddExplosions (void)
|
|||
ent->skinnum = 0;
|
||||
ent->flags |= RF_TRANSLUCENT;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (ex->type == ex_free)
|
||||
|
|
|
@ -2839,6 +2839,8 @@ void CTFWinElection(void)
|
|||
strncpy(level.forcemap, ctfgame.elevel, sizeof(level.forcemap) - 1);
|
||||
EndDMLevel();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
ctfgame.election = ELECT_NONE;
|
||||
}
|
||||
|
@ -3261,6 +3263,8 @@ int CTFUpdateJoinMenu(edict_t *ent)
|
|||
case MATCH_GAME :
|
||||
joinmenu[jmenu_match].text = "*MATCH IN PROGRESS";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (joinmenu[jmenu_red].text)
|
||||
|
@ -3401,6 +3405,8 @@ qboolean CTFCheckRules(void)
|
|||
CTFEndMatch();
|
||||
gi.positioned_sound (world->s.origin, world, CHAN_AUTO | CHAN_RELIABLE, gi.soundindex("misc/bigtele.wav"), 1, ATTN_NONE, 0);
|
||||
return false;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3450,6 +3456,8 @@ qboolean CTFCheckRules(void)
|
|||
gi.positioned_sound (world->s.origin, world, CHAN_AUTO | CHAN_RELIABLE, gi.soundindex("world/10_0.wav"), 1, ATTN_NONE, 0);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
|
||||
|
|
|
@ -303,6 +303,8 @@ void WriteField2 (FILE *f, field_t *field, byte *base)
|
|||
fwrite (*(char **)p, len, 1, f);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -416,6 +416,8 @@ void ED_ParseField (char *key, char *value, edict_t *ent)
|
|||
break;
|
||||
case F_IGNORE:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -315,6 +315,8 @@ void WriteField2 (FILE *f, field_t *field, byte *base)
|
|||
fwrite (*(char **)p, len, 1, f);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -396,6 +396,8 @@ void ED_ParseField (char *key, char *value, edict_t *ent)
|
|||
break;
|
||||
case F_IGNORE:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1491,10 +1491,10 @@ void Qcommon_Init (int argc, char **argv)
|
|||
Qcommon_Frame
|
||||
=================
|
||||
*/
|
||||
void Qcommon_Frame (int msec)
|
||||
void Qcommon_Frame (volatile int msec)
|
||||
{
|
||||
char *s;
|
||||
int time_before = 0, time_between = 0, time_after = 0;
|
||||
volatile int time_before = 0, time_between = 0, time_after = 0;
|
||||
|
||||
if (setjmp (abortframe) )
|
||||
return; // an ERR_DROP was thrown
|
||||
|
|
Loading…
Reference in a new issue