From 4235e9a1a278d5a6c0403ea5cb5c7477e2a1b8ad Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 2 May 2012 20:29:46 +0000 Subject: a variety of mostly unused parameter errors from OS X Lion's compiler git-svn-id: svn://localhost/ardour2/branches/3.0@12148 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/shuttle_control.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/shuttle_control.cc') diff --git a/gtk2_ardour/shuttle_control.cc b/gtk2_ardour/shuttle_control.cc index 3b5f8dbb78..abbd39ac16 100644 --- a/gtk2_ardour/shuttle_control.cc +++ b/gtk2_ardour/shuttle_control.cc @@ -522,7 +522,7 @@ ShuttleControl::on_expose_event (GdkEventExpose*) if (Config->get_shuttle_units() == Percentage) { if (speed == 1.0) { - snprintf (buf, sizeof (buf), _("Playing")); + snprintf (buf, sizeof (buf), "%s", _("Playing")); } else { if (speed < 0.0) { snprintf (buf, sizeof (buf), "<<< %d%%", (int) round (-speed * 100)); @@ -544,7 +544,7 @@ ShuttleControl::on_expose_event (GdkEventExpose*) } } else { - snprintf (buf, sizeof (buf), _("Stopped")); + snprintf (buf, sizeof (buf), "%s", _("Stopped")); } last_speed_displayed = speed; @@ -559,10 +559,10 @@ ShuttleControl::on_expose_event (GdkEventExpose*) switch (Config->get_shuttle_behaviour()) { case Sprung: - snprintf (buf, sizeof (buf), _("Sprung")); + snprintf (buf, sizeof (buf), "%s", _("Sprung")); break; case Wheel: - snprintf (buf, sizeof (buf), _("Wheel")); + snprintf (buf, sizeof (buf), "%s", _("Wheel")); break; } -- cgit v1.2.3