forked from len0rd/rockbox
Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
This commit is contained in:
parent
ef41cc6623
commit
005c414e5f
24 changed files with 36 additions and 2 deletions
|
|
@ -1726,6 +1726,7 @@ static bool dbg_disk_info(void)
|
|||
#ifdef HAVE_DIRCACHE
|
||||
static int dircache_callback(int btn, struct gui_synclist *lists)
|
||||
{
|
||||
(void)lists;
|
||||
struct dircache_info info;
|
||||
dircache_get_info(&info);
|
||||
|
||||
|
|
@ -1737,6 +1738,7 @@ static int dircache_callback(int btn, struct gui_synclist *lists)
|
|||
splash(HZ/2, "Rebuilding cache");
|
||||
dircache_suspend();
|
||||
*(int *)lists->data = dircache_resume();
|
||||
/* Fallthrough */
|
||||
case ACTION_UNKNOWN:
|
||||
btn = ACTION_NONE;
|
||||
break;
|
||||
|
|
@ -1776,7 +1778,6 @@ static int dircache_callback(int btn, struct gui_synclist *lists)
|
|||
btn = ACTION_REDRAW;
|
||||
|
||||
return btn;
|
||||
(void)lists;
|
||||
}
|
||||
|
||||
static bool dbg_dircache_info(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue