diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2009-03-07 09:42:39 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2009-03-07 09:42:39 +0000 |
commit | e09c51251f1742ac5c61966b5dd8c5f61c567f69 (patch) | |
tree | bcdaebca662905230391efdf6726cd25dde050b0 /libs | |
parent | bb20bcc7b6af0e63fc2a9b909b27765ffe5014e1 (diff) |
Fix compiler warnings
git-svn-id: svn://localhost/ardour2/branches/3.0@4744 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/automation_list.cc | 3 | ||||
-rw-r--r-- | libs/ardour/location.cc | 3 | ||||
-rw-r--r-- | libs/ardour/plugin.cc | 4 | ||||
-rw-r--r-- | libs/ardour/plugin_manager.cc | 1 |
4 files changed, 7 insertions, 4 deletions
diff --git a/libs/ardour/automation_list.cc b/libs/ardour/automation_list.cc index ed804d1b2c..08cf69308f 100644 --- a/libs/ardour/automation_list.cc +++ b/libs/ardour/automation_list.cc @@ -64,7 +64,8 @@ AutomationList::AutomationList (Evoral::Parameter id) } AutomationList::AutomationList (const AutomationList& other) - : ControlList(other) + : StatefulDestructible() + , ControlList(other) { _style = other._style; _state = other._state; diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index ca0a56972e..dd32da2628 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -43,7 +43,8 @@ using namespace sigc; using namespace PBD; Location::Location (const Location& other) - : _name (other._name), + : StatefulDestructible(), + _name (other._name), _start (other._start), _end (other._end), _flags (other._flags) diff --git a/libs/ardour/plugin.cc b/libs/ardour/plugin.cc index b9db471ced..44b2d96532 100644 --- a/libs/ardour/plugin.cc +++ b/libs/ardour/plugin.cc @@ -65,7 +65,9 @@ Plugin::Plugin (AudioEngine& e, Session& s) } Plugin::Plugin (const Plugin& other) - : _engine (other._engine) + : StatefulDestructible() + , Latent() + , _engine (other._engine) , _session (other._session) , _info (other._info) , _cycles (0) diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 497ac04896..c0c854180f 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -313,7 +313,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; |