Fix some warnings
Remove an unused variable, add missing FALLTHRUs, and use the same FALLTHRU wording where it wasn't recognized by gcc
This commit is contained in:
12
src/cmd.c
12
src/cmd.c
@@ -4118,7 +4118,8 @@ register char *cmd;
|
||||
break;
|
||||
case NHKF_RUN2:
|
||||
if (!Cmd.num_pad)
|
||||
break; /* else FALLTHRU */
|
||||
break;
|
||||
/*FALLTHRU*/
|
||||
case NHKF_RUN:
|
||||
if (movecmd(lowc(cmd[1]))) {
|
||||
context.run = 3;
|
||||
@@ -4128,7 +4129,8 @@ register char *cmd;
|
||||
break;
|
||||
case NHKF_FIGHT2:
|
||||
if (!Cmd.num_pad)
|
||||
break; /* else FALLTHRU */
|
||||
break;
|
||||
/*FALLTHRU*/
|
||||
/* Effects of movement commands and invisible monsters:
|
||||
* m: always move onto space (even if 'I' remembered)
|
||||
* F: always attack space (even if 'I' not remembered)
|
||||
@@ -4527,14 +4529,16 @@ const char *msg;
|
||||
break;
|
||||
case NHKF_RUN2:
|
||||
if (!Cmd.num_pad)
|
||||
break; /* else FALLTHRU */
|
||||
break;
|
||||
/*FALLTHRU*/
|
||||
case NHKF_RUN:
|
||||
case NHKF_RUN_NOPICKUP:
|
||||
dothat = "run";
|
||||
break;
|
||||
case NHKF_FIGHT2:
|
||||
if (!Cmd.num_pad)
|
||||
break; /* else FALLTHRU */
|
||||
break;
|
||||
/*FALLTHRU*/
|
||||
case NHKF_FIGHT:
|
||||
dothat = "fight";
|
||||
how = ""; /* avoid "fight at yourself" */
|
||||
|
||||
Reference in New Issue
Block a user