From: PatR Date: Sat, 23 Jan 2021 22:58:28 +0000 (-0800) Subject: cursesgraphics X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1eb06b46265ceef18424a37c6672407b5df67da;p=nethack cursesgraphics Not sure whether it was because I hadn't build without curses in a long time or because of recent changes in warning settings in the hints, but optfn_cursesgraphics() first drew a complaint about lack of prototype, then after I added one and made it be static, about a static routine not being used. --- diff --git a/src/options.c b/src/options.c index 75c5baab4..90a0f0088 100644 --- a/src/options.c +++ b/src/options.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 options.c $NHDT-Date: 1608606126 2020/12/22 03:02:06 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.489 $ */ +/* NetHack 3.7 options.c $NHDT-Date: 1611442675 2021/01/23 22:57:55 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.494 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Michael Allison, 2008. */ /* NetHack may be freely redistributed. See license for details. */ @@ -287,6 +287,7 @@ static boolean FDECL(illegal_menu_cmd_key, (UCHAR_P)); int FDECL(optfn_palette, (int, int, BOOLEAN_P, char *, char *)); #endif #ifdef CURSES_GRAPHICS +static int optfn_cursesgraphics(int, int, boolean, char *, char *op); extern int curses_read_attrs(const char *attrs); extern char *curses_fmt_attrs(char *); #endif @@ -789,7 +790,8 @@ char *op; return optn_ok; } -int +#ifdef CURSES_GRAPHICS +static int optfn_cursesgraphics(optidx, req, negated, opts, op) int optidx, req; boolean negated; @@ -840,6 +842,7 @@ char *op UNUSED; } return optn_ok; } +#endif int optfn_DECgraphics(optidx, req, negated, opts, op)