Wimplicit-fallthrough fixes for gtk-ardour

This commit is contained in:
Robin Gareus 2018-10-26 14:31:14 +02:00
parent c98fc1099d
commit 4f86da8544
4 changed files with 10 additions and 6 deletions

View File

@ -2684,7 +2684,7 @@ If you still wish to proceed, please use the\n\n\
msg.run ();
return;
}
// no break
/* fall through */
case 0:
_session->remove_pending_capture_state ();
break;
@ -2880,7 +2880,7 @@ If you still wish to proceed, please use the\n\n\
msg.run ();
return;
}
// no break
/* fall through */
case 0:
_session->remove_pending_capture_state ();
break;

View File

@ -510,7 +510,7 @@ AudioClock::end_edit (bool modify)
break;
case Seconds:
// no break
/* fall through */
case Samples:
if (edit_string.length() < 1) {
edit_string = pre_edit_string;

View File

@ -515,7 +515,7 @@ meter_render_ticks (Gtk::Widget& w, MeterType type, vector<ARDOUR::DataType> typ
points.insert (std::pair<float,float>( 3, 1.0));
points.insert (std::pair<float,float>( 4, 0.5));
points.insert (std::pair<float,float>( 5, 0.5));
// no break
/* fall through */
case MeterPeak0dB:
points.insert (std::pair<float,float>(-60, 0.5));
points.insert (std::pair<float,float>(-50, 1.0));
@ -750,11 +750,13 @@ meter_render_metrics (Gtk::Widget& w, MeterType type, vector<DataType> types)
points.insert (std::pair<float,string>( -5.0f, "+15"));
points.insert (std::pair<float,string>( 0.0f, "+20"));
break;
default:
case MeterPeak:
/* fall through */
case MeterKrms:
/* fall through */
default:
points.insert (std::pair<float,string>( 3.0f, "+3"));
// no break
/* fall through */
case MeterPeak0dB:
points.insert (std::pair<float,string>(-50.0f, "-50"));
points.insert (std::pair<float,string>(-40.0f, "-40"));
@ -890,6 +892,7 @@ meter_render_metrics (Gtk::Widget& w, MeterType type, vector<DataType> types)
points.insert (std::pair<float,string>( 72, "72"));
points.insert (std::pair<float,string>(112, "112"));
points.insert (std::pair<float,string>(127, "127"));
break;
case 4:
/* labels that don't overlay with 0dBFS*/
points.insert (std::pair<float,string>( 0, "0"));

View File

@ -960,6 +960,7 @@ MeterStrip::set_meter_type_multi (int what, RouteGroup* group, MeterType type)
break;
case 0:
level_meter->set_meter_type (type);
break;
default:
if (what == _strip_type) {
level_meter->set_meter_type (type);