OSDN Git Service

[refactor] 意図したswitch-case文のfall throughをコメント
authorHabu <habu@users.sourceforge.jp>
Sun, 19 Apr 2020 14:41:49 +0000 (23:41 +0900)
committerHabu <habu@users.sourceforge.jp>
Sun, 19 Apr 2020 14:44:06 +0000 (23:44 +0900)
commiteaf040511e819c62ae53dfaffad4f6c271497ea3
treec37d0bd8c3599baa9dac8e4aeb9cbad746234802
parent6ff326c5aea46fffb352f465f2bc7e46daead14b
[refactor] 意図したswitch-case文のfall throughをコメント

switch-case文で意図してfall throughしている部分に、/* Fall through */ というコメントを入れる。
これにより、以下の効果を得る:
 - 意図したfall throughである事を明示する
 - gccによる暗黙のfall through警告を抑制する
16 files changed:
src/autopick.c
src/cmd/cmd-gameoption.c
src/combat/melee1.c
src/dungeon-file.c
src/market/store-util.c
src/object-flavor.c
src/object2.c
src/player-inventory.c
src/racial.c
src/rooms.c
src/selfinfo.c
src/spells1.c
src/spells2.c
src/spells3.c
src/targeting.c
src/util.c