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

src/invent.c

index 17e49514d7504a7eb6650630f73a25c533d55dff..afd92389d3c1844b511bd7f5c124430144cc46c1 100644 (file)
@@ -40,6 +40,7 @@ static void FDECL(menu_identify, (int));
 static boolean FDECL(tool_in_use, (struct obj *));
 static int FDECL(adjust_ok, (struct obj *));
 static char FDECL(obj_to_let, (struct obj *));
+static void FDECL(mime_action, (const char *));
 
 /* wizards can wish for venom, which will become an invisible inventory
  * item without this.  putting it in inv_order would mean venom would
@@ -1455,7 +1456,7 @@ const char *action;
     return !strcmp(action, "take off") || !strcmp(action, "remove");
 }
 
-void
+static void
 mime_action(word)
 const char *word;
 {