From eba4f18a92f478df4a92ca46bac8ba44afc5ddca Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 21 Nov 2011 17:03:06 +0000 Subject: fix a few warnings from newer versions of gcc git-svn-id: svn://localhost/ardour2/branches/3.0@10734 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/lxvst_plugin.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/lxvst_plugin.cc') 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; -- cgit v1.2.3