Fix various overlooked causes of warnings.

GCC5 now produces under 300 lines of warnings, but the remaining ones
will require more complex solutions.
This commit is contained in:
John "Elwin" Edwards 2016-03-06 21:02:59 -05:00
parent 5cf0194676
commit a6c73eb65a
3 changed files with 6 additions and 2 deletions

View file

@ -1165,6 +1165,7 @@ void use_mm(int which);
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);

View file

@ -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 @@ rs_write_thing(FILE *savef, THING *t)
return(WRITESTAT);
}
int
void
rs_fix_thing(THING *t)
{
THING *item;

View file

@ -565,7 +565,7 @@ struct monlev {
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 */
};