A few minor warning fixes
authorDavid Robillard <d@drobilla.net>
Thu, 10 Aug 2006 00:56:04 +0000 (00:56 +0000)
committerDavid Robillard <d@drobilla.net>
Thu, 10 Aug 2006 00:56:04 +0000 (00:56 +0000)
git-svn-id: svn://localhost/ardour2/trunk@776 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/pan_automation_time_axis.cc
libs/ardour/panner.cc
libs/ardour/track.cc

index 3169f65059521e99faacf58c05c98f7b52347643..ec884151b5d46653fb5161888ab996d92af061a7 100644 (file)
@@ -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()) {
index 8336c4697c5fcd48906aab843509968454dcd4aa..f866b5ae1098c863176687cf20c2b1391fc0347f 100644 (file)
@@ -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));
                }
index 941524b54cf03b92477b84b9cc36f841c7d3a7f9..f81ef9de4dea364dba22b01acb58b0c88eff8529 100644 (file)
@@ -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;
        }