From: nhmall Date: Sat, 23 Jan 2021 14:15:15 +0000 (-0500) Subject: fix warning in restore.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4487c1014f3251c7d2bb92629ea5a35af51590f7;p=nethack fix warning in restore.c restore.c:909:1: warning: no previous prototype for ‘rest_stairs’ [-Wmissing-prototypes] 909 | rest_stairs(nhfp) | ^~~~~~~~~~~ --- diff --git a/src/restore.c b/src/restore.c index 0b771ad28..ec4eaa7f5 100644 --- a/src/restore.c +++ b/src/restore.c @@ -37,6 +37,7 @@ static int FDECL(restlevelfile, (XCHAR_P)); static void FDECL(restore_msghistory, (NHFILE *)); static void FDECL(reset_oattached_mids, (BOOLEAN_P)); static void FDECL(rest_levl, (NHFILE *, BOOLEAN_P)); +static void FDECL(rest_stairs, (NHFILE *)); /* * Save a mapping of IDs from ghost levels to the current level. This @@ -905,7 +906,7 @@ NHFILE *nhfp; return 1; } -void +static void rest_stairs(nhfp) NHFILE *nhfp; {