diff --git a/gtk2_ardour/pan_automation_time_axis.cc b/gtk2_ardour/pan_automation_time_axis.cc index 3169f65059..ec884151b5 100644 --- a/gtk2_ardour/pan_automation_time_axis.cc +++ b/gtk2_ardour/pan_automation_time_axis.cc @@ -108,7 +108,7 @@ void PanAutomationTimeAxisView::add_line (AutomationLine& line) { char buf[32]; - snprintf(buf,32,"Line %u",lines.size()+1); + snprintf(buf,32,"Line %zu",lines.size()+1); multiline_selector.append_text(buf); if (lines.empty()) { diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc index 8336c4697c..f866b5ae10 100644 --- a/libs/ardour/panner.cc +++ b/libs/ardour/panner.cc @@ -1258,10 +1258,10 @@ Panner::set_state (const XMLNode& node) float x, y; prop = (*niter)->property (X_("x")); - sscanf (prop->value().c_str(), "%.12g", &x); + sscanf (prop->value().c_str(), "%g", &x); prop = (*niter)->property (X_("y")); - sscanf (prop->value().c_str(), "%.12g", &y); + sscanf (prop->value().c_str(), "%g", &y); outputs.push_back (Output (x, y)); } diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 941524b54c..f81ef9de4d 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -152,7 +152,7 @@ bool Track::can_record() { bool will_record = true; - for (int i = 0; i < _inputs.size() && will_record; i++) { + for (size_t i = 0; i < _inputs.size() && will_record; i++) { if (!_inputs[i]->connected()) will_record = false; }