Fix compiler warnings
authorSakari Bergen <sakari.bergen@beatwaves.net>
Sat, 7 Mar 2009 09:42:39 +0000 (09:42 +0000)
committerSakari Bergen <sakari.bergen@beatwaves.net>
Sat, 7 Mar 2009 09:42:39 +0000 (09:42 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4744 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour_ui2.cc
gtk2_ardour/mixer_strip.cc
libs/ardour/automation_list.cc
libs/ardour/location.cc
libs/ardour/plugin.cc
libs/ardour/plugin_manager.cc

index 98e65b43e35975b0cdd4636745105fa5475f8d66..abc4163d5e31310d320f89fcefa43920a5c1779a 100644 (file)
@@ -884,7 +884,6 @@ ARDOUR_UI::editor_realized ()
        Config->map_parameters (mem_fun (*this, &ARDOUR_UI::parameter_changed));
 
        set_size_request_to_display_given_text (speed_display_box, _("-0.55"), 2, 2);
-       const guint32 FUDGE = 25; // Combo's are stupid - they steal space from the entry for the button
        cerr << "I commented out line line 889 in ardour_ui2.cc, because it made ardour crash somewhere in Gnome::Canvas::Text" << endl;
        //reset_dpi();
 }
index de5bd7a979125ba39a00653226234f28b4b73dab..52af1c09a6f0e388f808a9c513bc438a6c80859d 100644 (file)
@@ -1180,7 +1180,6 @@ MixerStrip::name_button_button_press (GdkEventButton* ev)
        if (ev->button == 1 || ev->button == 3) {
                list_route_operations ();
 
-               Menu_Helpers::MenuList& items = route_ops_menu->items();
                /* do not allow rename if the track is record-enabled */
                rename_menu_item->set_sensitive (!_route->record_enabled());
                route_ops_menu->popup (1, ev->time);
index ed804d1b2c5a4cbc468ea20fded8450687f859d3..08cf69308fc4d9f4ac849d9fc4b2e5f532017b2b 100644 (file)
@@ -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;
index ca0a56972ecc8484ea77461016eb49fc5fe03bdf..dd32da26284a0a200ef236d10460409f4af67355 100644 (file)
@@ -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)
index b9db471cede5e454a73b33c4d6014370c78ff02b..44b2d96532cf0ed46d9859513fab896a959cfe67 100644 (file)
@@ -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)
index 497ac048962ab3ef4329e7fac50f5d64cba06daf..c0c854180f85dc3ecf6b4aa904794bb1847775df 100644 (file)
@@ -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;