]> granicus.if.org Git - nethack/commitdiff
fix warning in restore.c
authornhmall <nhmall@nethack.org>
Sat, 23 Jan 2021 14:15:15 +0000 (09:15 -0500)
committernhmall <nhmall@nethack.org>
Sat, 23 Jan 2021 14:15:15 +0000 (09:15 -0500)
restore.c:909:1: warning: no previous prototype for ‘rest_stairs’ [-Wmissing-prototypes]
  909 | rest_stairs(nhfp)
      | ^~~~~~~~~~~

src/restore.c

index 0b771ad288bde421e1003ff97cfe34f84ec31cb8..ec4eaa7f5582c49fa5afd992b7abc58ffda814e5 100644 (file)
@@ -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;
 {