summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-03-05 13:49:15 +0800
committerGeoff Levand <geoff@infradead.org>2013-03-05 06:06:17 -0800
commit567e6be38a53cd6c832c4425645e1116fc9e5216 (patch)
treefe502c6c7fe1c0e349b4830c8d1a592741054cf4
parent0fdc5cc3f296db134729fe58e074c20084b99459 (diff)
downloadtalos-petitboot-567e6be38a53cd6c832c4425645e1116fc9e5216.tar.gz
talos-petitboot-567e6be38a53cd6c832c4425645e1116fc9e5216.zip
ui/ncurses: Fix warning from unnecessary if statement
ui/ncurses/nc-menu.c: In function 'pmenu_process_key': ui/ncurses/nc-menu.c:207:33: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Geoff Levand <geoff@infradead.org>
-rw-r--r--ui/ncurses/nc-menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ncurses/nc-menu.c b/ui/ncurses/nc-menu.c
index a8337a2..87b58e2 100644
--- a/ui/ncurses/nc-menu.c
+++ b/ui/ncurses/nc-menu.c
@@ -204,7 +204,7 @@ static void pmenu_process_key(struct nc_scr *scr)
if (c == ERR)
return;
- if (1) DBGS("%d (%o)\n", c, c);
+ DBGS("%d (%o)\n", c, c);
if (menu->hot_key)
c = menu->hot_key(menu, item, c);
OpenPOWER on IntegriCloud