ui/ncurses: Fix warning from unnecessary if statement
authorJeremy Kerr <jk@ozlabs.org>
Tue, 5 Mar 2013 05:49:15 +0000 (13:49 +0800)
committerGeoff Levand <geoff@infradead.org>
Tue, 5 Mar 2013 14:06:17 +0000 (06:06 -0800)
 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>
ui/ncurses/nc-menu.c

index a8337a2e6e0018a7988761e4bdcd9ca047a34b6f..87b58e2d28f3ccaefa7a62755ae96991f9fb1768 100644 (file)
@@ -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);