summaryrefslogtreecommitdiff
path: root/apps/onplay.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/onplay.c
parentef41cc6623226f3ce7630211ef88640a48fb8e59 (diff)
downloadrockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.tar.gz
rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.zip
Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 0942d69d3f..a5a92e7c1c 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -1441,10 +1441,13 @@ static int clipboard_paste(void)
1441 { 1441 {
1442 case OPRC_CANCELLED: 1442 case OPRC_CANCELLED:
1443 splash_cancelled(); 1443 splash_cancelled();
1444 /* Fallthrough */
1444 case OPRC_SUCCESS: 1445 case OPRC_SUCCESS:
1445 onplay_result = ONPLAY_RELOAD_DIR; 1446 onplay_result = ONPLAY_RELOAD_DIR;
1447 /* Fallthrough */
1446 case OPRC_NOOP: 1448 case OPRC_NOOP:
1447 clipboard_clear_selection(&clipboard); 1449 clipboard_clear_selection(&clipboard);
1450 /* Fallthrough */
1448 case OPRC_NOOVERWRT: 1451 case OPRC_NOOVERWRT:
1449 break; 1452 break;
1450 default: 1453 default: