diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-21 17:03:06 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-21 17:03:06 +0000 |
commit | eba4f18a92f478df4a92ca46bac8ba44afc5ddca (patch) | |
tree | 8d655e139f5a4b37234c3dc065a1d0aa9c0e3bee /libs/ardour/lxvst_plugin.cc | |
parent | 22f6b991300e265ecfe0e8fb9e52f36a0cd2912a (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-x | libs/ardour/lxvst_plugin.cc | 4 |
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; |