mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-13 14:11:35 +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->skinnum = 0;
|
||||||
ent->flags |= RF_TRANSLUCENT;
|
ent->flags |= RF_TRANSLUCENT;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ex->type == ex_free)
|
if (ex->type == ex_free)
|
||||||
|
|
|
@ -2839,6 +2839,8 @@ void CTFWinElection(void)
|
||||||
strncpy(level.forcemap, ctfgame.elevel, sizeof(level.forcemap) - 1);
|
strncpy(level.forcemap, ctfgame.elevel, sizeof(level.forcemap) - 1);
|
||||||
EndDMLevel();
|
EndDMLevel();
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
ctfgame.election = ELECT_NONE;
|
ctfgame.election = ELECT_NONE;
|
||||||
}
|
}
|
||||||
|
@ -3261,6 +3263,8 @@ int CTFUpdateJoinMenu(edict_t *ent)
|
||||||
case MATCH_GAME :
|
case MATCH_GAME :
|
||||||
joinmenu[jmenu_match].text = "*MATCH IN PROGRESS";
|
joinmenu[jmenu_match].text = "*MATCH IN PROGRESS";
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (joinmenu[jmenu_red].text)
|
if (joinmenu[jmenu_red].text)
|
||||||
|
@ -3401,6 +3405,8 @@ qboolean CTFCheckRules(void)
|
||||||
CTFEndMatch();
|
CTFEndMatch();
|
||||||
gi.positioned_sound (world->s.origin, world, CHAN_AUTO | CHAN_RELIABLE, gi.soundindex("misc/bigtele.wav"), 1, ATTN_NONE, 0);
|
gi.positioned_sound (world->s.origin, world, CHAN_AUTO | CHAN_RELIABLE, gi.soundindex("misc/bigtele.wav"), 1, ATTN_NONE, 0);
|
||||||
return false;
|
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);
|
gi.positioned_sound (world->s.origin, world, CHAN_AUTO | CHAN_RELIABLE, gi.soundindex("world/10_0.wav"), 1, ATTN_NONE, 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -303,6 +303,8 @@ void WriteField2 (FILE *f, field_t *field, byte *base)
|
||||||
fwrite (*(char **)p, len, 1, f);
|
fwrite (*(char **)p, len, 1, f);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -416,6 +416,8 @@ void ED_ParseField (char *key, char *value, edict_t *ent)
|
||||||
break;
|
break;
|
||||||
case F_IGNORE:
|
case F_IGNORE:
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -315,6 +315,8 @@ void WriteField2 (FILE *f, field_t *field, byte *base)
|
||||||
fwrite (*(char **)p, len, 1, f);
|
fwrite (*(char **)p, len, 1, f);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -396,6 +396,8 @@ void ED_ParseField (char *key, char *value, edict_t *ent)
|
||||||
break;
|
break;
|
||||||
case F_IGNORE:
|
case F_IGNORE:
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1491,10 +1491,10 @@ void Qcommon_Init (int argc, char **argv)
|
||||||
Qcommon_Frame
|
Qcommon_Frame
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
void Qcommon_Frame (int msec)
|
void Qcommon_Frame (volatile int msec)
|
||||||
{
|
{
|
||||||
char *s;
|
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) )
|
if (setjmp (abortframe) )
|
||||||
return; // an ERR_DROP was thrown
|
return; // an ERR_DROP was thrown
|
||||||
|
|
Loading…
Reference in a new issue