Mercurial > hg > early-roguelike
changeset 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 | 0990adf580ee |
children | 2dcf10d45d5b |
files | arogue5/rogue.h rogue4/state.c srogue/rogue.h |
diffstat | 3 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/arogue5/rogue.h Sun Mar 06 19:32:47 2016 -0500 +++ b/arogue5/rogue.h Sun Mar 06 21:02:59 2016 -0500 @@ -1165,6 +1165,7 @@ char *vowelstr(char *str); void wait_for(WINDOW *win, char ch); struct linked_list *wake_monster(int y, int x); +void wanderer(void); void waste_time(void); char *weap_name(struct object *obj); void wear(void);
--- 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;
--- a/srogue/rogue.h Sun Mar 06 19:32:47 2016 -0500 +++ b/srogue/rogue.h Sun Mar 06 21:02:59 2016 -0500 @@ -565,7 +565,7 @@ struct linked_list { struct linked_list *l_next; struct linked_list *l_prev; - char *l_data; /* Various structure pointers */ + void *l_data; /* Various structure pointers */ };