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:
parent
5cf0194676
commit
a6c73eb65a
3 changed files with 6 additions and 2 deletions
|
|
@ -1165,6 +1165,7 @@ void use_mm(int which);
|
||||||
char *vowelstr(char *str);
|
char *vowelstr(char *str);
|
||||||
void wait_for(WINDOW *win, char ch);
|
void wait_for(WINDOW *win, char ch);
|
||||||
struct linked_list *wake_monster(int y, int x);
|
struct linked_list *wake_monster(int y, int x);
|
||||||
|
void wanderer(void);
|
||||||
void waste_time(void);
|
void waste_time(void);
|
||||||
char *weap_name(struct object *obj);
|
char *weap_name(struct object *obj);
|
||||||
void wear(void);
|
void wear(void);
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,9 @@
|
||||||
#define READSTAT ((format_error == 0) && (read_error == 0))
|
#define READSTAT ((format_error == 0) && (read_error == 0))
|
||||||
#define WRITESTAT (write_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 read_error = FALSE;
|
||||||
int write_error = FALSE;
|
int write_error = FALSE;
|
||||||
int format_error = FALSE;
|
int format_error = FALSE;
|
||||||
|
|
@ -1533,7 +1536,7 @@ rs_write_thing(FILE *savef, THING *t)
|
||||||
return(WRITESTAT);
|
return(WRITESTAT);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
void
|
||||||
rs_fix_thing(THING *t)
|
rs_fix_thing(THING *t)
|
||||||
{
|
{
|
||||||
THING *item;
|
THING *item;
|
||||||
|
|
|
||||||
|
|
@ -565,7 +565,7 @@ struct monlev {
|
||||||
struct linked_list {
|
struct linked_list {
|
||||||
struct linked_list *l_next;
|
struct linked_list *l_next;
|
||||||
struct linked_list *l_prev;
|
struct linked_list *l_prev;
|
||||||
char *l_data; /* Various structure pointers */
|
void *l_data; /* Various structure pointers */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue