summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-07-24 15:39:01 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-08-04 18:59:46 +0000
commit005c414e5f2a0ace3756da767d3920ac98cb5c76 (patch)
tree73b17f1e733ffb64a475657eefa21b17ac1ff7b9 /apps/debug_menu.c
parentef41cc6623226f3ce7630211ef88640a48fb8e59 (diff)
downloadrockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.tar.gz
rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.zip
Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 02dc19359b..800e485ce3 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1726,6 +1726,7 @@ static bool dbg_disk_info(void)
1726#ifdef HAVE_DIRCACHE 1726#ifdef HAVE_DIRCACHE
1727static int dircache_callback(int btn, struct gui_synclist *lists) 1727static int dircache_callback(int btn, struct gui_synclist *lists)
1728{ 1728{
1729 (void)lists;
1729 struct dircache_info info; 1730 struct dircache_info info;
1730 dircache_get_info(&info); 1731 dircache_get_info(&info);
1731 1732
@@ -1737,6 +1738,7 @@ static int dircache_callback(int btn, struct gui_synclist *lists)
1737 splash(HZ/2, "Rebuilding cache"); 1738 splash(HZ/2, "Rebuilding cache");
1738 dircache_suspend(); 1739 dircache_suspend();
1739 *(int *)lists->data = dircache_resume(); 1740 *(int *)lists->data = dircache_resume();
1741 /* Fallthrough */
1740 case ACTION_UNKNOWN: 1742 case ACTION_UNKNOWN:
1741 btn = ACTION_NONE; 1743 btn = ACTION_NONE;
1742 break; 1744 break;
@@ -1776,7 +1778,6 @@ static int dircache_callback(int btn, struct gui_synclist *lists)
1776 btn = ACTION_REDRAW; 1778 btn = ACTION_REDRAW;
1777 1779
1778 return btn; 1780 return btn;
1779 (void)lists;
1780} 1781}
1781 1782
1782static bool dbg_dircache_info(void) 1783static bool dbg_dircache_info(void)