diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-03-05 13:49:15 +0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-03-05 06:06:17 -0800 |
commit | 567e6be38a53cd6c832c4425645e1116fc9e5216 (patch) | |
tree | fe502c6c7fe1c0e349b4830c8d1a592741054cf4 /ui | |
parent | 0fdc5cc3f296db134729fe58e074c20084b99459 (diff) | |
download | petitboot-567e6be38a53cd6c832c4425645e1116fc9e5216.zip petitboot-567e6be38a53cd6c832c4425645e1116fc9e5216.tar.gz |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ncurses/nc-menu.c | 2 |
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); |