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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user