Explicitly ignore the return value

Fixes scan-build complaint about dead assignment
This commit is contained in:
Pasi Kallinen
2017-11-05 17:11:37 +02:00
parent b87db2dd3f
commit 81b1461600

View File

@@ -1861,8 +1861,8 @@ struct obj *obj;
verbalize(you_buy_it);
useupf(corpse, 1L);
}
can = hold_another_object(can, "You make, but cannot pick up, %s.",
doname(can), (const char *) 0);
(void) hold_another_object(can, "You make, but cannot pick up, %s.",
doname(can), (const char *) 0);
} else
impossible("Tinning failed.");
}
@@ -2807,8 +2807,8 @@ struct obj *obj;
pline("Snatching %s is a fatal mistake.", kbuf);
instapetrify(kbuf);
}
otmp = hold_another_object(
otmp, "You drop %s!", doname(otmp), (const char *) 0);
(void) hold_another_object(otmp, "You drop %s!",
doname(otmp), (const char *) 0);
break;
default:
/* to floor beneath mon */