fix a few warnings from newer versions of gcc
[ardour.git] / libs / ardour / lxvst_plugin.cc
index 21bfdb42f5437c8ddfd29916048323c3631505cf..7202134b77c658474dbbabb9629b12d6b71b0dc3 100755 (executable)
@@ -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;