Explicitly ignore the return value

Fixes scan-build complaint about dead assignment
This commit is contained in:
Pasi Kallinen
2017-11-05 17:11:41 +02:00
parent b87db2dd3f
commit 81b1461600
+4 -4
View File
@@ -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 */