]> granicus.if.org Git - nethack/commitdiff
make currently unhandled switch cases apparent
authornhmall <nhmall@nethack.org>
Sat, 21 May 2022 13:13:02 +0000 (09:13 -0400)
committernhmall <nhmall@nethack.org>
Sat, 21 May 2022 13:13:02 +0000 (09:13 -0400)
src/zap.c

index 0dd50174de8d7f6ebea343ed441a13fa55b15d44..8ae2d513c3251f52d77e9c5f8e26e33b371ff01a 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -1015,6 +1015,10 @@ revive(struct obj *corpse, boolean by_hero)
             break;
         }
         /*FALLTHRU*/
+    case OBJ_FREE:
+    case OBJ_MIGRATING:
+    case OBJ_ONBILL:
+    case OBJ_LUAFREE:
     default:
         panic("revive default case %d", (int) corpse->where);
     }