X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fncurses.c;h=7f45f9a316e3ebdd6ccaf58ee738f19651628963;hp=f6090f43823455ddc627400b6b5874dc561bbaf9;hb=efd59f16f336b4c4c698ff783e1723f3161026ef;hpb=7eb4be765b131f00ac3da7ce8cfd3bc6759d26c5 diff --git a/test/ncurses.c b/test/ncurses.c index f6090f43..7f45f9a3 100644 --- a/test/ncurses.c +++ b/test/ncurses.c @@ -40,7 +40,7 @@ AUTHOR Author: Eric S. Raymond 1993 Thomas E. Dickey (beginning revision 1.27 in 1996). -$Id: ncurses.c,v 1.281 2007/01/06 23:32:00 tom Exp $ +$Id: ncurses.c,v 1.283 2007/03/10 19:11:50 tom Exp $ ***************************************************************************/ @@ -3379,7 +3379,7 @@ FRAME WINDOW *wind; }; -#ifdef NCURSES_VERSION +#if defined(NCURSES_VERSION) && !NCURSES_OPAQUE #define keypad_active(win) (win)->_use_keypad #define scroll_active(win) (win)->_scroll #else @@ -3395,6 +3395,7 @@ static bool HaveKeypad(FRAME * curp) { WINDOW *win = (curp ? curp->wind : stdscr); + (void) win; return keypad_active(win); } @@ -3402,6 +3403,7 @@ static bool HaveScroll(FRAME * curp) { WINDOW *win = (curp ? curp->wind : stdscr); + (void) win; return scroll_active(win); }