diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 1f134a15a5..e018ce157c 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2140,14 +2140,14 @@ Route::apply_processor_order (const ProcessorList& new_order) */ bool need_latency_recompute = false; for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) { - if (boost::shared_ptr pi = boost::dynamic_pointer_cast (*i)) { + if (boost::dynamic_pointer_cast (*i)) { need_latency_recompute = true; break; - } else if (boost::shared_ptr snd = boost::dynamic_pointer_cast (*i)) { + } else if (boost::dynamic_pointer_cast (*i)) { need_latency_recompute = true; break; } else if (boost::shared_ptr pi = boost::dynamic_pointer_cast (*i)) { - if (boost::shared_ptr pio = pi->sidechain_input ()) { + if (pi->sidechain_input ()) { need_latency_recompute = true; break; }