A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

misc: Properly annotate some intentional case fallthroughs

Change-Id: Ie758f17fefac72aca1aa28a8ba1126b9334fe134

+13 -9
+1
apps/plugins/lastfm_scrobbler.c
··· 248 return -1; 249 } 250 } 251 case 10: /* Export & exit */ 252 { 253 res = configfile_save(CFG_FILE, config, gCfg_sz, CFG_VER);
··· 248 return -1; 249 } 250 } 251 + /* fallthrough */ 252 case 10: /* Export & exit */ 253 { 254 res = configfile_save(CFG_FILE, config, gCfg_sz, CFG_VER);
+1 -1
apps/plugins/lastfm_scrobbler_viewer.c
··· 809 810 if (find_type == FIND_ALL) 811 find_type = FIND_INCLUDE; 812 - /* fall-through */ 813 } 814 case 3: /*Custom Filter / Settings */ 815 {
··· 809 810 if (find_type == FIND_ALL) 811 find_type = FIND_INCLUDE; 812 + /* fallthrough */ 813 } 814 case 3: /*Custom Filter / Settings */ 815 {
+3 -2
apps/plugins/lua/ldebug.c
··· 254 len += f->sizelineinfo; 255 f->packedlineinfo = luaM_freearray(L, f->packedlineinfo, f->sizelineinfo, unsigned char); 256 f->sizelineinfo = 0; 257 case 2: 258 len += f->sizelocvars * (sizeof(struct LocVar) + sizeof(dummy->tsv) + sizeof(struct LocVar *)); 259 f->locvars = luaM_freearray(L, f->locvars, f->sizelocvars, struct LocVar); ··· 262 f->sizeupvalues * (sizeof(dummy->tsv) + sizeof(TString *)); 263 f->sizelocvars = 0; 264 f->sizeupvalues = 0; 265 case 1: 266 default: 267 break; ··· 510 case OP_FORLOOP: 511 case OP_FORPREP: 512 checkreg(pt, a+3); 513 - /* go through */ 514 case OP_JMP: { 515 int dest = pc+1+b; 516 /* not full check and jump is forward and do not skip `lastpc'? */ ··· 733 va_end(argp); 734 luaG_errormsg(L); 735 } 736 -
··· 254 len += f->sizelineinfo; 255 f->packedlineinfo = luaM_freearray(L, f->packedlineinfo, f->sizelineinfo, unsigned char); 256 f->sizelineinfo = 0; 257 + /* fallthrough */ 258 case 2: 259 len += f->sizelocvars * (sizeof(struct LocVar) + sizeof(dummy->tsv) + sizeof(struct LocVar *)); 260 f->locvars = luaM_freearray(L, f->locvars, f->sizelocvars, struct LocVar); ··· 263 f->sizeupvalues * (sizeof(dummy->tsv) + sizeof(TString *)); 264 f->sizelocvars = 0; 265 f->sizeupvalues = 0; 266 + /* fallthrough */ 267 case 1: 268 default: 269 break; ··· 512 case OP_FORLOOP: 513 case OP_FORPREP: 514 checkreg(pt, a+3); 515 + /* fallthrough */ 516 case OP_JMP: { 517 int dest = pc+1+b; 518 /* not full check and jump is forward and do not skip `lastpc'? */ ··· 735 va_end(argp); 736 luaG_errormsg(L); 737 }
+1 -1
apps/plugins/lua/llex.c
··· 367 } 368 else if (sep == -1) return '['; 369 else luaX_lexerror(ls, "invalid long string delimiter", TK_STRING); 370 } 371 case '=': { 372 next(ls); ··· 460 lua_assert(ls->lookahead.token == TK_EOS); 461 ls->lookahead.token = llex(ls, &ls->lookahead.seminfo); 462 } 463 -
··· 367 } 368 else if (sep == -1) return '['; 369 else luaX_lexerror(ls, "invalid long string delimiter", TK_STRING); 370 + break; /* to avoid warnings */ 371 } 372 case '=': { 373 next(ls); ··· 461 lua_assert(ls->lookahead.token == TK_EOS); 462 ls->lookahead.token = llex(ls, &ls->lookahead.seminfo); 463 }
+2 -1
apps/plugins/mpegplayer/stream_mgr.c
··· 693 case VIDEO_PRINT_FRAME: 694 if (data) 695 break; 696 case VIDEO_PRINT_THUMBNAIL: 697 if (disk_buf_status() != STREAM_STOPPED) 698 break; /* Prepare image if not playing */ ··· 1132 rb->splash(HZ, "Parser init failed!"); 1133 } 1134 else 1135 - { 1136 return STREAM_OK; 1137 } 1138
··· 693 case VIDEO_PRINT_FRAME: 694 if (data) 695 break; 696 + /* fallthrough */ 697 case VIDEO_PRINT_THUMBNAIL: 698 if (disk_buf_status() != STREAM_STOPPED) 699 break; /* Prepare image if not playing */ ··· 1133 rb->splash(HZ, "Parser init failed!"); 1134 } 1135 else 1136 + { 1137 return STREAM_OK; 1138 } 1139
+1 -1
firmware/common/unicode.c
··· 374 ucs = table[tmp]; 375 break; 376 } 377 - 378 case CP_TID_936: /* Simplified Chinese */ 379 case CP_TID_949: /* Korean */ 380 case CP_TID_950: /* Traditional Chinese */
··· 374 ucs = table[tmp]; 375 break; 376 } 377 + /* fallthrough */ 378 case CP_TID_936: /* Simplified Chinese */ 379 case CP_TID_949: /* Korean */ 380 case CP_TID_950: /* Traditional Chinese */
+2 -2
firmware/kernel/thread.c
··· 889 UNLOCK_THREAD(thread); 890 return THREAD_OK; /* timed out */ 891 } 892 - 893 default: 894 UNLOCK_THREAD(thread); 895 return THREAD_NONE; ··· 1044 break; 1045 1046 thread = NULL; 1047 - 1048 /* Enter sleep mode to reduce power usage */ 1049 RTR_UNLOCK(corep); 1050 core_sleep(IF_COP(core));
··· 889 UNLOCK_THREAD(thread); 890 return THREAD_OK; /* timed out */ 891 } 892 + /* fallthrough */ 893 default: 894 UNLOCK_THREAD(thread); 895 return THREAD_NONE; ··· 1044 break; 1045 1046 thread = NULL; 1047 + 1048 /* Enter sleep mode to reduce power usage */ 1049 RTR_UNLOCK(corep); 1050 core_sleep(IF_COP(core));
+1 -1
firmware/target/mips/ingenic_jz47xx/ata-sd-jz4760.c
··· 788 (unsigned char *) ((unsigned int) request->response + 5); 789 request->block_len = 8; 790 request->nob = 1; 791 - 792 case SD_READ_DAT_UNTIL_STOP: 793 case SD_READ_SINGLE_BLOCK: 794 case SD_READ_MULTIPLE_BLOCK:
··· 788 (unsigned char *) ((unsigned int) request->response + 5); 789 request->block_len = 8; 790 request->nob = 1; 791 + /* fallthrough */ 792 case SD_READ_DAT_UNTIL_STOP: 793 case SD_READ_SINGLE_BLOCK: 794 case SD_READ_MULTIPLE_BLOCK:
+1
lib/rbcodec/dsp/dsp_misc.c
··· 170 dsp_pitch_update(dsp); 171 #endif 172 value = (intptr_t)NULL; /* Default gains */ 173 case REPLAYGAIN_SET_GAINS: 174 dsp_replaygain_set_gains((void *)value); 175 break;
··· 170 dsp_pitch_update(dsp); 171 #endif 172 value = (intptr_t)NULL; /* Default gains */ 173 + /* fallthrough */ 174 case REPLAYGAIN_SET_GAINS: 175 dsp_replaygain_set_gains((void *)value); 176 break;