iomenu.c: -Wimplicit-fallthrough - iomenu - interactive terminal-based selection menu
HTML git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 223058fdf9e2427b8ec9ec01df7185c074b545a7
DIR parent bfaf3a787f09d5bb9c7157233fe81bfe14f9b44b
HTML Author: Josuah Demangeon <mail@josuah.net>
Date: Fri, 29 Sep 2017 16:06:16 +0200
iomenu.c: -Wimplicit-fallthrough
Diffstat:
M iomenu.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
DIR diff --git a/iomenu.c b/iomenu.c
@@ -432,13 +432,17 @@ top:
break;
case CSI('5'): /* page up */
- if (fgetc(stdin) != '~') break;
+ if (fgetc(stdin) != '~')
+ break;
+ /* fallthrough */
case ALT('v'):
move_page(-1);
break;
case CSI('6'): /* page down */
- if (fgetc(stdin) != '~') break;
+ if (fgetc(stdin) != '~')
+ break;
+ /* fallthrough */
case CTL('V'):
move_page(+1);
break;