summaryrefslogtreecommitdiff
path: root/libs/ardour/lxvst_plugin.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-21 17:03:06 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-21 17:03:06 +0000
commiteba4f18a92f478df4a92ca46bac8ba44afc5ddca (patch)
tree8d655e139f5a4b37234c3dc065a1d0aa9c0e3bee /libs/ardour/lxvst_plugin.cc
parent22f6b991300e265ecfe0e8fb9e52f36a0cd2912a (diff)
fix a few warnings from newer versions of gcc
git-svn-id: svn://localhost/ardour2/branches/3.0@10734 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/lxvst_plugin.cc')
-rwxr-xr-xlibs/ardour/lxvst_plugin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/lxvst_plugin.cc b/libs/ardour/lxvst_plugin.cc
index 21bfdb42f5..7202134b77 100755
--- a/libs/ardour/lxvst_plugin.cc
+++ b/libs/ardour/lxvst_plugin.cc
@@ -344,8 +344,12 @@ LXVSTPlugin::load_plugin_preset (PresetRecord r)
/* Extract the index of this preset from the URI */
int id;
int index;
+#ifndef NDEBUG
int const p = sscanf (r.uri.c_str(), "VST:%d:%d", &id, &index);
assert (p == 2);
+#else
+ sscanf (r.uri.c_str(), "VST:%d:%d", &id, &index);
+#endif
_vstfx->want_program = index;
return true;