Silence GCC warnings

...when compiling with -Wall --pedantic
This commit is contained in:
Pasi Kallinen
2015-03-31 08:36:32 +03:00
parent ec7238ac22
commit f2d97b2d00
8 changed files with 12 additions and 29 deletions

View File

@@ -423,7 +423,7 @@ boolean with_you;
* probably because the level is full.
* Dump the monster's cargo and leave the monster dead.
*/
struct obj *obj, *corpse;
struct obj *obj;
while ((obj = mtmp->minvent) != 0) {
obj_extract_self(obj);
obj_no_longer_held(obj);
@@ -437,7 +437,7 @@ boolean with_you;
impossible("Can't find relocated object.");
}
}
corpse = mkcorpstat(CORPSE, (struct monst *)0, mtmp->data,
(void) mkcorpstat(CORPSE, (struct monst *)0, mtmp->data,
xlocale, ylocale, CORPSTAT_NONE);
mongone(mtmp);
}