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
+3 -1
View File
@@ -2408,6 +2408,7 @@ boolean ordinary;
case WAN_LIGHT: /* (broken wand) */
/* assert( !ordinary ); */
damage = d(obj->spe, 25);
/*FALLTHRU*/
case EXPENSIVE_CAMERA:
if (!damage)
damage = 5;
@@ -4138,7 +4139,8 @@ boolean say; /* Announce out of sight hit/miss events if true */
switch (bounce) {
case 0:
dx = -dx; /* fall into... */
dx = -dx;
/*FALLTHRU*/
case 1:
dy = -dy;
break;