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.
This commit is contained in:
+5
-2
@@ -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) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/*-Copyright (c) Michael Allison, 2008. */
|
/*-Copyright (c) Michael Allison, 2008. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* 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 *));
|
int FDECL(optfn_palette, (int, int, BOOLEAN_P, char *, char *));
|
||||||
#endif
|
#endif
|
||||||
#ifdef CURSES_GRAPHICS
|
#ifdef CURSES_GRAPHICS
|
||||||
|
static int optfn_cursesgraphics(int, int, boolean, char *, char *op);
|
||||||
extern int curses_read_attrs(const char *attrs);
|
extern int curses_read_attrs(const char *attrs);
|
||||||
extern char *curses_fmt_attrs(char *);
|
extern char *curses_fmt_attrs(char *);
|
||||||
#endif
|
#endif
|
||||||
@@ -789,7 +790,8 @@ char *op;
|
|||||||
return optn_ok;
|
return optn_ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
#ifdef CURSES_GRAPHICS
|
||||||
|
static int
|
||||||
optfn_cursesgraphics(optidx, req, negated, opts, op)
|
optfn_cursesgraphics(optidx, req, negated, opts, op)
|
||||||
int optidx, req;
|
int optidx, req;
|
||||||
boolean negated;
|
boolean negated;
|
||||||
@@ -840,6 +842,7 @@ char *op UNUSED;
|
|||||||
}
|
}
|
||||||
return optn_ok;
|
return optn_ok;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
optfn_DECgraphics(optidx, req, negated, opts, op)
|
optfn_DECgraphics(optidx, req, negated, opts, op)
|
||||||
|
|||||||
Reference in New Issue
Block a user