- fixed most of implicit fallthrough compilation warnings
src/common/console/c_console.cpp:1032:4: warning: this statement may fall through [-Wimplicit-fallthrough=] src/common/console/c_console.cpp:958:4: warning: this statement may fall through [-Wimplicit-fallthrough=] src/common/scripting/backend/codegen.cpp:2969:4: warning: this statement may fall through [-Wimplicit-fallthrough=] src/common/scripting/frontend/zcc_compile.cpp:2656:4: warning: this statement may fall through [-Wimplicit-fallthrough=] src/common/scripting/frontend/zcc_compile.cpp:521:5: warning: this statement may fall through [-Wimplicit-fallthrough=] src/common/scripting/jit/jit_math.cpp:966:19: warning: this statement may fall through [-Wimplicit-fallthrough=] src/d_main.cpp:1538:3: warning: this statement may fall through [-Wimplicit-fallthrough=] src/d_main.cpp:1549:3: warning: this statement may fall through [-Wimplicit-fallthrough=] src/d_main.cpp:3820:3: warning: this statement may fall through [-Wimplicit-fallthrough=] src/gameconfigfile.cpp:544:25: warning: this statement may fall through [-Wimplicit-fallthrough=] src/gamedata/p_xlat.cpp:193:11: warning: this statement may fall through [-Wimplicit-fallthrough=] src/gamedata/p_xlat.cpp:200:11: warning: this statement may fall through [-Wimplicit-fallthrough=] src/gamedata/p_xlat.cpp:210:11: warning: this statement may fall through [-Wimplicit-fallthrough=] src/g_game.cpp:1145:20: warning: this statement may fall through [-Wimplicit-fallthrough=] src/maploader/maploader.cpp:2142:3: warning: this statement may fall through [-Wimplicit-fallthrough=] src/menu/doommenu.cpp:159:28: warning: this statement may fall through [-Wimplicit-fallthrough=] src/m_cheat.cpp:109:3: warning: this statement may fall through [-Wimplicit-fallthrough=] src/playsim/mapthinkers/a_ceiling.cpp:254:24: warning: this statement may fall through [-Wimplicit-fallthrough=] src/playsim/mapthinkers/a_floor.cpp:322:18: warning: this statement may fall through [-Wimplicit-fallthrough=] src/playsim/mapthinkers/a_floor.cpp:330:18: warning: this statement may fall through [-Wimplicit-fallthrough=] src/playsim/mapthinkers/a_floor.cpp:344:10: warning: this statement may fall through [-Wimplicit-fallthrough=] src/playsim/mapthinkers/a_plats.cpp:129:47: warning: this statement may fall through [-Wimplicit-fallthrough=] src/playsim/mapthinkers/a_plats.cpp:284:8: warning: this statement may fall through [-Wimplicit-fallthrough=] src/playsim/p_acs.cpp:6302:18: warning: this statement may fall through [-Wimplicit-fallthrough=] src/playsim/p_acs.cpp:8111:16: warning: this statement may fall through [-Wimplicit-fallthrough=] src/playsim/p_spec.cpp:344:6: warning: this statement may fall through [-Wimplicit-fallthrough=] src/scripting/decorate/thingdef_parse.cpp:1343:9: warning: this statement may fall through [-Wimplicit-fallthrough=] src/scripting/zscript/zcc_compile_doom.cpp:298:12: warning: this statement may fall through [-Wimplicit-fallthrough=] src/wi_stuff.cpp:463:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
This commit is contained in:
parent
112640e6c0
commit
b8b93e0dd8
19 changed files with 29 additions and 2 deletions
|
|
@ -1543,6 +1543,7 @@ void D_DoAdvanceDemo (void)
|
|||
break;
|
||||
}
|
||||
// fall through to case 1 if no advisory notice
|
||||
[[fallthrough]];
|
||||
|
||||
case 1:
|
||||
Advisory = NULL;
|
||||
|
|
@ -1564,6 +1565,7 @@ void D_DoAdvanceDemo (void)
|
|||
break;
|
||||
}
|
||||
}
|
||||
[[fallthrough]];
|
||||
|
||||
default:
|
||||
case 0:
|
||||
|
|
@ -3822,6 +3824,7 @@ void I_UpdateWindowTitle()
|
|||
titlestr.Format("%s - %s", level.LevelName.GetChars(), GameStartupInfo.Name.GetChars());
|
||||
break;
|
||||
}
|
||||
[[fallthrough]];
|
||||
case 2:
|
||||
titlestr = GameStartupInfo.Name;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue