From: nhmall Date: Tue, 20 Oct 2020 23:37:51 +0000 (-0400) Subject: clear a couple of new warnings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1c7f26d4b8ed08103073d5c470920165d6020fb;p=nethack clear a couple of new warnings 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. --- diff --git a/src/mondata.c b/src/mondata.c index e3e5444d8..497beef06 100644 --- a/src/mondata.c +++ b/src/mondata.c @@ -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)) diff --git a/src/steed.c b/src/steed.c index ae6d9a5da..e380a4c5c 100644 --- a/src/steed.c +++ b/src/steed.c @@ -40,7 +40,6 @@ struct obj *otmp; struct monst *mtmp; struct permonst *ptr; int chance; - const char *s; if (!u_handsy()) return 0;