From 384386d71c5afc5c40c2d8039a0ce1fa1437537b Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Sat, 23 Jan 2016 09:35:14 -0500 Subject: [PATCH] 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. --- rogue3/main.c | 5 ++--- rogue5/pack.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/rogue3/main.c b/rogue3/main.c index 33060d9..da50954 100644 --- a/rogue3/main.c +++ b/rogue3/main.c @@ -25,9 +25,8 @@ WINDOW *mw; /* Used to store mosnters */ 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 --git a/rogue5/pack.c b/rogue5/pack.c index ced82d5..2a62d30 100644 --- a/rogue5/pack.c +++ b/rogue5/pack.c @@ -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;