follow-up for pull-request #1397
Fix warnings
objnam.c: In function ‘wizterrainwish’:
objnam.c:3536:54: warning: variable ‘didblock’ set but not used [-Wunused-but-set-variable]
3536 | boolean madeterrain = FALSE, badterrain = FALSE, didblock, is_dbridge;
| ^~~~~~~~
This commit is contained in:
@@ -3533,7 +3533,7 @@ staticfn struct obj *
|
|||||||
wizterrainwish(struct _readobjnam_data *d)
|
wizterrainwish(struct _readobjnam_data *d)
|
||||||
{
|
{
|
||||||
struct rm *lev;
|
struct rm *lev;
|
||||||
boolean madeterrain = FALSE, badterrain = FALSE, didblock, is_dbridge;
|
boolean madeterrain = FALSE, badterrain = FALSE, is_dbridge;
|
||||||
int trap;
|
int trap;
|
||||||
unsigned oldtyp, ltyp;
|
unsigned oldtyp, ltyp;
|
||||||
coordxy x = u.ux, y = u.uy;
|
coordxy x = u.ux, y = u.uy;
|
||||||
@@ -3565,7 +3565,6 @@ wizterrainwish(struct _readobjnam_data *d)
|
|||||||
lev = &levl[x][y];
|
lev = &levl[x][y];
|
||||||
oldtyp = lev->typ;
|
oldtyp = lev->typ;
|
||||||
is_dbridge = (oldtyp == DRAWBRIDGE_DOWN || oldtyp == DRAWBRIDGE_UP);
|
is_dbridge = (oldtyp == DRAWBRIDGE_DOWN || oldtyp == DRAWBRIDGE_UP);
|
||||||
didblock = does_block(x, y, lev);
|
|
||||||
p = eos(bp);
|
p = eos(bp);
|
||||||
if (!BSTRCMPI(bp, p - 8, "fountain")) {
|
if (!BSTRCMPI(bp, p - 8, "fountain")) {
|
||||||
lev->typ = FOUNTAIN;
|
lev->typ = FOUNTAIN;
|
||||||
|
|||||||
Reference in New Issue
Block a user