From f5ca777b372649d184b91a26a4a49b87560e42b1 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Wed, 20 Jul 2011 12:00:21 +1000 Subject: [PATCH] Ignore character returned by wgetch() in wait_for_key() --- src/intf.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/intf.c b/src/intf.c index fa052fc..87e2481 100644 --- a/src/intf.c +++ b/src/intf.c @@ -1601,9 +1601,6 @@ bool answer_yesno (WINDOW *win) void wait_for_key (WINDOW *win, int y, int attr) { - int key; - - keypad(win, true); meta(win, true); wtimeout(win, -1); @@ -1611,5 +1608,5 @@ void wait_for_key (WINDOW *win, int y, int attr) center(win, y, attr, "[ Press to continue ] "); wrefresh(win); - key = wgetch(win); + (void) wgetch(win); }