13
0

A few minor warning fixes

git-svn-id: svn://localhost/ardour2/trunk@776 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2006-08-10 00:56:04 +00:00
parent fece970e26
commit 60e9d9c3df
3 changed files with 4 additions and 4 deletions

View 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()) {

View 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));
}

View 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;
}