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:
+4
-3
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user