13
0

handle compiler stupidity with early return

This commit is contained in:
Paul Davis 2022-06-21 18:42:31 -06:00
parent f7b91d577b
commit 7a32ff33d4

View File

@ -1297,7 +1297,7 @@ void LaunchControlXL::set_track_mode (TrackMode mode) {
color_off = RedLow;
break;
default:
break;
return; /* stupid compilers */
}
for ( size_t n = 0 ; n < sizeof (trk_cntrl_btns) / sizeof (trk_cntrl_btns[0]); ++n) {