silence three compile warnings
apply.c:495:22: warning: variable 'optr' set but not used [-Wunused-but-set-variable]
struct permonst *optr;
^
1 warning generated.
cmd.c:4577:26: warning: variable 'how' set but not used [-Wunused-but-set-variable]
const char *dothat, *how;
^
cmd.c:4578:29: warning: variable 'viawindow' set but not used [-Wunused-but-set-variable]
boolean prefixhandling, viawindow;
^
2 warnings generated.
This commit is contained in:
@@ -492,7 +492,7 @@ static void
|
||||
magic_whistled(struct obj *obj)
|
||||
{
|
||||
struct monst *mtmp, *nextmon;
|
||||
struct permonst *optr;
|
||||
/* struct permonst *optr; */
|
||||
char buf[BUFSZ], *mnam = 0,
|
||||
shiftbuf[BUFSZ + sizeof "shifts location"],
|
||||
appearbuf[BUFSZ + sizeof "appears"],
|
||||
@@ -529,7 +529,7 @@ magic_whistled(struct obj *obj)
|
||||
if (M_AP_TYPE(mtmp))
|
||||
seemimic(mtmp);
|
||||
omx = mtmp->mx, omy = mtmp->my;
|
||||
optr = mtmp->data;
|
||||
/* optr = mtmp->data; */
|
||||
mnexto(mtmp, !already_discovered ? RLOC_MSG : RLOC_NONE);
|
||||
|
||||
if (mtmp->mx != omx || mtmp->my != omy) {
|
||||
|
||||
Reference in New Issue
Block a user