Mercurial > hg > early-roguelike
diff rogue4/state.c @ 234:c10fe421b8fb
Fix various overlooked causes of warnings.
GCC5 now produces under 300 lines of warnings, but the remaining ones
will require more complex solutions.
author | John "Elwin" Edwards |
---|---|
date | Sun, 06 Mar 2016 21:02:59 -0500 |
parents | 696277507a2e |
children | b49d8b963df3 |
line wrap: on
line diff
--- a/rogue4/state.c Sun Mar 06 19:32:47 2016 -0500 +++ b/rogue4/state.c Sun Mar 06 21:02:59 2016 -0500 @@ -70,6 +70,9 @@ #define READSTAT ((format_error == 0) && (read_error == 0)) #define WRITESTAT (write_error == 0) +int rs_write_int(FILE *savef, int c); +int rs_read_int(int inf, int *i); + int read_error = FALSE; int write_error = FALSE; int format_error = FALSE; @@ -1533,7 +1536,7 @@ return(WRITESTAT); } -int +void rs_fix_thing(THING *t) { THING *item;