Mercurial > hg > early-roguelike
changeset 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 | 3c0abb714974 |
children | 1b73a8641b37 |
files | rogue3/main.c rogue5/pack.c |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/rogue3/main.c Fri Jan 22 21:16:54 2016 -0500 +++ b/rogue3/main.c Sat Jan 23 09:35:14 2016 -0500 @@ -25,9 +25,8 @@ FILE *scoreboard = NULL; FILE *logfi = NULL; -main(argc, argv, envp) -char **argv; -char **envp; +int +main(int argc, char *argv[], char *envp[]) { char *env; struct linked_list *item;
--- a/rogue5/pack.c Fri Jan 22 21:16:54 2016 -0500 +++ b/rogue5/pack.c Sat Jan 23 09:35:14 2016 -0500 @@ -21,8 +21,8 @@ * If this was the object of something's desire, that monster will * get mad and run at the hero */ -update_mdest(obj) -register THING *obj; +void +update_mdest(THING *obj) { register THING *mp;