# HG changeset patch # User John "Elwin" Edwards # Date 1453559714 18000 # Node ID e5a15b09ce1dadb2af1687252c5132e41f00c928 # Parent 3c0abb7149746ef776de4251e538030053392a55 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. diff -r 3c0abb714974 -r e5a15b09ce1d rogue3/main.c --- 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; diff -r 3c0abb714974 -r e5a15b09ce1d rogue5/pack.c --- 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;