]> granicus.if.org Git - nethack/commitdiff
clear a couple of new warnings
authornhmall <nhmall@nethack.org>
Tue, 20 Oct 2020 23:37:51 +0000 (19:37 -0400)
committernhmall <nhmall@nethack.org>
Tue, 20 Oct 2020 23:37:51 +0000 (19:37 -0400)
mondata.c:198:17: warning: unused variable 's' [-Wunused-variable]
    const char *s;
                ^
1 warning generated.

steed.c:43:17: warning: unused variable 's' [-Wunused-variable]
    const char *s;
                ^
1 warning generated.

src/mondata.c
src/steed.c

index e3e5444d8e9da2124fb457ff74b425b588f1eea9..497beef069585c8aa0da4ac097f119d9f81c10b4 100644 (file)
@@ -195,7 +195,6 @@ struct obj *obj; /* aatyp == AT_WEAP, AT_SPIT */
     boolean is_you = (mdef == &g.youmonst);
     boolean check_visor = FALSE;
     struct obj *o;
-    const char *s;
 
     /* no eyes protect against all attacks for now */
     if (!haseyes(mdef->data))
index ae6d9a5dad225671bf3315a1de39f99b276cb33f..e380a4c5c2711c1f35fcc23537d8f68633c21864 100644 (file)
@@ -40,7 +40,6 @@ struct obj *otmp;
     struct monst *mtmp;
     struct permonst *ptr;
     int chance;
-    const char *s;
 
     if (!u_handsy())
         return 0;