- 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
|
|
@ -296,6 +296,7 @@ void ZCCDoomCompiler::DispatchProperty(FPropertyInfo *prop, ZCC_PropertyStmt *pr
|
|||
|
||||
case 'C': // this parser accepts colors only in string form.
|
||||
pref.i = 1;
|
||||
[[fallthrough]];
|
||||
case 'S':
|
||||
case 'T': // a filtered string (ZScript only parses filtered strings so there's nothing to do here.)
|
||||
conv.s = GetStringConst(ex, ctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue