do not crash when loading old history files with MIDI edits; add all notes in region...
[ardour.git] / libs / ardour / plugin_manager.cc
index 497ac048962ab3ef4329e7fac50f5d64cba06daf..bdc4d9e9b5f31459addb69b97ec7c565400a0965 100644 (file)
 
 */
 
+#ifdef WAF_BUILD
+#include "libardour-config.h"
+#endif
+
 #define __STDC_FORMAT_MACROS 1
 #include <stdint.h>
 
@@ -76,7 +80,7 @@ PluginManager::PluginManager ()
 
        load_favorites ();
 
-#ifdef GTKOSX
+#ifdef HAVE_AUDIOUNITS
        ProcessSerialNumber psn = { 0, kCurrentProcess }; 
        OSStatus returnCode = TransformProcessType(& psn, kProcessTransformToForegroundApplication);
        if( returnCode != 0) {
@@ -209,7 +213,7 @@ PluginManager::add_ladspa_directory (string path)
        return -1;
 }
 
-static bool ladspa_filter (const string& str, void *arg)
+static bool ladspa_filter (const string& str, void */*arg*/)
 {
        /* Not a dotfile, has a prefix before a period, suffix is "so" */
        
@@ -217,7 +221,7 @@ static bool ladspa_filter (const string& str, void *arg)
 }
 
 int
-PluginManager::ladspa_discover_from_path (string path)
+PluginManager::ladspa_discover_from_path (string /*path*/)
 {
        PathScanner scanner;
        vector<string *> *plugin_objects;
@@ -236,7 +240,7 @@ PluginManager::ladspa_discover_from_path (string path)
        return ret;
 }
 
-static bool rdf_filter (const string &str, void *arg)
+static bool rdf_filter (const string &str, void */*arg*/)
 {
        return str[0] != '.' && 
                   ((str.find(".rdf")  == (str.length() - 4)) ||
@@ -313,7 +317,6 @@ PluginManager::ladspa_discover (string path)
        const LADSPA_Descriptor *descriptor;
        LADSPA_Descriptor_Function dfunc;
        const char *errstr;
-       bool first = true;
 
        if ((module = dlopen (path.c_str(), RTLD_NOW)) == 0) {
                error << string_compose(_("LADSPA: cannot load module \"%1\" (%2)"), path, dlerror()) << endmsg;