From: nhmall Date: Sat, 23 Jan 2021 14:07:33 +0000 (-0500) Subject: fix warning in invent.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a85a9c731d9cfac928b6ce96ce348de2e704b30;p=nethack fix warning in invent.c invent.c:1459:1: warning: no previous prototype for ‘mime_action’ [-Wmissing-prototypes] 1459 | mime_action(word) | ^~~~~~~~~~~ --- diff --git a/src/invent.c b/src/invent.c index 17e49514d..afd92389d 100644 --- a/src/invent.c +++ b/src/invent.c @@ -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; {