Mercurial > hg > early-roguelike
comparison rogue5/pack.c @ 214:e5a15b09ce1d
rogue3, rogue5: fix all GCC5 warnings.
GCC5 enables more warnings by default, including pre-ANSI implicit
function definitions. These two games now build cleanly, but the others
will require more effort.
| author | John "Elwin" Edwards |
|---|---|
| date | Sat, 23 Jan 2016 09:35:14 -0500 |
| parents | f502bf60e6e4 |
| children |
comparison
equal
deleted
inserted
replaced
| 213:3c0abb714974 | 214:e5a15b09ce1d |
|---|---|
| 19 * update_mdest: | 19 * update_mdest: |
| 20 * Called after picking up an object, before discarding it. | 20 * Called after picking up an object, before discarding it. |
| 21 * If this was the object of something's desire, that monster will | 21 * If this was the object of something's desire, that monster will |
| 22 * get mad and run at the hero | 22 * get mad and run at the hero |
| 23 */ | 23 */ |
| 24 update_mdest(obj) | 24 void |
| 25 register THING *obj; | 25 update_mdest(THING *obj) |
| 26 { | 26 { |
| 27 register THING *mp; | 27 register THING *mp; |
| 28 | 28 |
| 29 for (mp = mlist; mp != NULL; mp = next(mp)) | 29 for (mp = mlist; mp != NULL; mp = next(mp)) |
| 30 if (mp->t_dest == &obj->o_pos) | 30 if (mp->t_dest == &obj->o_pos) |
