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:
Pasi Kallinen
2018-03-30 19:42:50 +03:00
parent a365dc3450
commit 2548d68dd3
35 changed files with 80 additions and 32 deletions
+4 -3
View File
@@ -113,8 +113,8 @@ dosounds()
You_hear("someone searching.");
break;
}
/* fall into... (yes, even for hallucination) */
}
/*FALLTHRU*/
case 0:
You_hear("the footsteps of a guard on patrol.");
break;
@@ -662,7 +662,8 @@ register struct monst *mtmp;
else
pline_msg = "mews.";
break;
} /* else FALLTHRU */
}
/*FALLTHRU*/
case MS_GROWL:
pline_msg = mtmp->mpeaceful ? "snarls." : "growls!";
break;
@@ -764,7 +765,7 @@ register struct monst *mtmp;
}
break;
}
/* else FALLTHRU */
/*FALLTHRU*/
case MS_HUMANOID:
if (!mtmp->mpeaceful) {
if (In_endgame(&u.uz) && is_mplayer(ptr))