From 005c414e5f2a0ace3756da767d3920ac98cb5c76 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 24 Jul 2021 15:39:01 +0100 Subject: Document intentional fallthroughs + fix harmless unintended ones Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b --- apps/plugins/imageviewer/imageviewer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/imageviewer/imageviewer.c') diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c index 4b1a982438..508cf1a5b5 100644 --- a/apps/plugins/imageviewer/imageviewer.c +++ b/apps/plugins/imageviewer/imageviewer.c @@ -600,6 +600,7 @@ static int scroll_bmp(struct image_info *info) if (entries > 1 && info->width <= LCD_WIDTH && info->height <= LCD_HEIGHT) return change_filename(DIR_PREV); + /* fallthrough */ case IMGVIEW_LEFT | BUTTON_REPEAT: pan_view_left(info); break; @@ -608,6 +609,7 @@ static int scroll_bmp(struct image_info *info) if (entries > 1 && info->width <= LCD_WIDTH && info->height <= LCD_HEIGHT) return change_filename(DIR_NEXT); + /* fallthrough */ case IMGVIEW_RIGHT | BUTTON_REPEAT: pan_view_right(info); break; -- cgit v1.2.3