]> granicus.if.org Git - nethack/commitdiff
place_object() bit: panic/impossible decl
authorPatR <rankin@nethack.org>
Fri, 25 Feb 2022 02:15:48 +0000 (18:15 -0800)
committerPatR <rankin@nethack.org>
Fri, 25 Feb 2022 02:15:48 +0000 (18:15 -0800)
src/mkobj.c

index 60eb8486e48cb99df0c7796e4453aa289904e0cd..fc27dfbd33b99034758aa1f738844786f8724530 100644 (file)
@@ -2088,7 +2088,7 @@ place_object(struct obj *otmp, int x, int y)
     register struct obj *otmp2 = g.level.objects[x][y];
 
     if (!isok(x, y)) { /* validate location */
-        void (*func)(const char *, ...);
+        void (*func)(const char *, ...) PRINTF_F(1, 2);
 
         func = (x < 0 || y < 0 || x > COLNO - 1 || y > ROWNO - 1) ? panic
                : impossible;