Explicitly ignore the return value
Fixes scan-build complaint about dead assignment
This commit is contained in:
+4
-4
@@ -1861,8 +1861,8 @@ struct obj *obj;
|
|||||||
verbalize(you_buy_it);
|
verbalize(you_buy_it);
|
||||||
useupf(corpse, 1L);
|
useupf(corpse, 1L);
|
||||||
}
|
}
|
||||||
can = hold_another_object(can, "You make, but cannot pick up, %s.",
|
(void) hold_another_object(can, "You make, but cannot pick up, %s.",
|
||||||
doname(can), (const char *) 0);
|
doname(can), (const char *) 0);
|
||||||
} else
|
} else
|
||||||
impossible("Tinning failed.");
|
impossible("Tinning failed.");
|
||||||
}
|
}
|
||||||
@@ -2807,8 +2807,8 @@ struct obj *obj;
|
|||||||
pline("Snatching %s is a fatal mistake.", kbuf);
|
pline("Snatching %s is a fatal mistake.", kbuf);
|
||||||
instapetrify(kbuf);
|
instapetrify(kbuf);
|
||||||
}
|
}
|
||||||
otmp = hold_another_object(
|
(void) hold_another_object(otmp, "You drop %s!",
|
||||||
otmp, "You drop %s!", doname(otmp), (const char *) 0);
|
doname(otmp), (const char *) 0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* to floor beneath mon */
|
/* to floor beneath mon */
|
||||||
|
|||||||
Reference in New Issue
Block a user