Add explicit cast to void
All other these calls not using a return value have a cast.
This commit is contained in:
@@ -80,7 +80,7 @@ browse_map(int ter_typ, const char *ter_explain)
|
|||||||
save_autodescribe = iflags.autodescribe;
|
save_autodescribe = iflags.autodescribe;
|
||||||
iflags.autodescribe = TRUE;
|
iflags.autodescribe = TRUE;
|
||||||
iflags.terrainmode = ter_typ;
|
iflags.terrainmode = ter_typ;
|
||||||
getpos(&dummy_pos, FALSE, ter_explain);
|
(void) getpos(&dummy_pos, FALSE, ter_explain);
|
||||||
iflags.terrainmode = 0;
|
iflags.terrainmode = 0;
|
||||||
iflags.autodescribe = save_autodescribe;
|
iflags.autodescribe = save_autodescribe;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1068,7 +1068,7 @@ mhurtle(struct monst *mon, int dx, int dy, int range)
|
|||||||
cc.y = mon->my + (dy * range);
|
cc.y = mon->my + (dy * range);
|
||||||
(void) walk_path(&mc, &cc, mhurtle_step, (genericptr_t) mon);
|
(void) walk_path(&mc, &cc, mhurtle_step, (genericptr_t) mon);
|
||||||
if (!DEADMONSTER(mon) && t_at(mon->mx, mon->my))
|
if (!DEADMONSTER(mon) && t_at(mon->mx, mon->my))
|
||||||
mintrap(mon, FORCEBUNGLE);
|
(void) mintrap(mon, FORCEBUNGLE);
|
||||||
else
|
else
|
||||||
(void) minliquid(mon);
|
(void) minliquid(mon);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -2515,7 +2515,7 @@ mondead(register struct monst* mtmp)
|
|||||||
if (enexto(&new_xy, mtmp->mx, mtmp->my, &mons[mndx]))
|
if (enexto(&new_xy, mtmp->mx, mtmp->my, &mons[mndx]))
|
||||||
rloc_to(mtmp, new_xy.x, new_xy.y);
|
rloc_to(mtmp, new_xy.x, new_xy.y);
|
||||||
}
|
}
|
||||||
newcham(mtmp, &mons[mndx], FALSE, FALSE);
|
(void) newcham(mtmp, &mons[mndx], FALSE, FALSE);
|
||||||
if (mtmp->data == &mons[mndx])
|
if (mtmp->data == &mons[mndx])
|
||||||
mtmp->cham = NON_PM;
|
mtmp->cham = NON_PM;
|
||||||
else
|
else
|
||||||
@@ -3219,7 +3219,7 @@ vamp_stone(struct monst* mtmp)
|
|||||||
pline("%s!", buf);
|
pline("%s!", buf);
|
||||||
display_nhwindow(WIN_MESSAGE, FALSE);
|
display_nhwindow(WIN_MESSAGE, FALSE);
|
||||||
}
|
}
|
||||||
newcham(mtmp, &mons[mndx], FALSE, FALSE);
|
(void) newcham(mtmp, &mons[mndx], FALSE, FALSE);
|
||||||
if (mtmp->data == &mons[mndx])
|
if (mtmp->data == &mons[mndx])
|
||||||
mtmp->cham = NON_PM;
|
mtmp->cham = NON_PM;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user