apps/examples/pdcurses: Eliminate some warnings.
This commit is contained in:
parent
4eac495713
commit
b3db0c32ec
@ -77,8 +77,6 @@
|
|||||||
|
|
||||||
#define HAVE_CLIPBOARD 0
|
#define HAVE_CLIPBOARD 0
|
||||||
|
|
||||||
#define MAX_OPTIONS (6 + HAVE_COLOR + HAVE_CLIPBOARD + HAVE_WIDE)
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Types
|
* Private Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -96,7 +94,7 @@ typedef struct commands COMMAND;
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void continue1(WINDOW *win);
|
static void continue1(WINDOW *win);
|
||||||
#if defined(HAVE_CLIPBOARD) || defined(HAVE_WIDE)
|
#if HAVE_CLIPBOARD || HAVE_WIDE
|
||||||
static void continue2(void);
|
static void continue2(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -124,7 +122,7 @@ static void wide_test(WINDOW *);
|
|||||||
|
|
||||||
static void display_menu(int, int);
|
static void display_menu(int, int);
|
||||||
|
|
||||||
static const COMMAND command[MAX_OPTIONS] =
|
static const COMMAND command[] =
|
||||||
{
|
{
|
||||||
{"Intro Test", intro_test},
|
{"Intro Test", intro_test},
|
||||||
{"Pad Test", pad_test},
|
{"Pad Test", pad_test},
|
||||||
@ -144,6 +142,8 @@ static const COMMAND command[MAX_OPTIONS] =
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define MAX_OPTIONS (sizeof(command) / sizeof(COMMAND))
|
||||||
|
|
||||||
static int height;
|
static int height;
|
||||||
static int width;
|
static int width;
|
||||||
|
|
||||||
@ -232,7 +232,7 @@ static void continue1(WINDOW *win)
|
|||||||
wgetch(win);
|
wgetch(win);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_CLIPBOARD) || defined(HAVE_WIDE)
|
#if HAVE_CLIPBOARD || HAVE_WIDE
|
||||||
static void continue2(void)
|
static void continue2(void)
|
||||||
{
|
{
|
||||||
move(LINES - 1, 1);
|
move(LINES - 1, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user