mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
GCC 7 fallthru bypasses (-Werror-implicit-fallthrough)
This commit is contained in:
parent
e5125d0746
commit
8d930c7f47
1 changed files with 3 additions and 4 deletions
|
|
@ -3862,7 +3862,7 @@ static boolean M_LevelAvailableOnPlatter(INT32 mapnum)
|
||||||
if (mapnum+1 == spstage_start)
|
if (mapnum+1 == spstage_start)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// intentional fallthrough
|
/* FALLTHRU */
|
||||||
case LLM_RECORDATTACK:
|
case LLM_RECORDATTACK:
|
||||||
case LLM_NIGHTSATTACK:
|
case LLM_NIGHTSATTACK:
|
||||||
if (mapvisited[mapnum] & MV_MAX)
|
if (mapvisited[mapnum] & MV_MAX)
|
||||||
|
|
@ -4272,8 +4272,7 @@ static void M_HandleLevelPlatter(INT32 choice)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// below comment, verbatim: gcc 7 -Werror-implicit-fallthrough workaround
|
/* FALLTHRU */
|
||||||
// fall through
|
|
||||||
case KEY_RIGHTARROW:
|
case KEY_RIGHTARROW:
|
||||||
if (levellistmode == LLM_CREATESERVER && !lsrow)
|
if (levellistmode == LLM_CREATESERVER && !lsrow)
|
||||||
{
|
{
|
||||||
|
|
@ -5309,7 +5308,7 @@ static void M_HandleAddons(INT32 choice)
|
||||||
M_StartMessage(va("%c%s\x80\nThis copy of SRB2 was compiled\nwithout support for .lua files.\n\n(Press a key)\n", ('\x80' + (highlightflags>>V_CHARCOLORSHIFT)), dirmenu[dir_on[menudepthleft]]+DIR_STRING),NULL,MM_NOTHING);
|
M_StartMessage(va("%c%s\x80\nThis copy of SRB2 was compiled\nwithout support for .lua files.\n\n(Press a key)\n", ('\x80' + (highlightflags>>V_CHARCOLORSHIFT)), dirmenu[dir_on[menudepthleft]]+DIR_STRING),NULL,MM_NOTHING);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
// else intentional fallthrough
|
/* FALLTHRU */
|
||||||
case EXT_SOC:
|
case EXT_SOC:
|
||||||
case EXT_WAD:
|
case EXT_WAD:
|
||||||
#ifdef USE_KART
|
#ifdef USE_KART
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue