fixes for 98% of all the warnings/errors reported by OS X gcc on tiger
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 30 Sep 2011 17:55:14 +0000 (17:55 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 30 Sep 2011 17:55:14 +0000 (17:55 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10179 d708f5d6-7413-0410-9779-e7cbd77b26cf

100 files changed:
gtk2_ardour/ardour_ui.cc
gtk2_ardour/ardour_ui.h
gtk2_ardour/au_pluginui.mm
gtk2_ardour/audio_clock.cc
gtk2_ardour/audio_region_editor.cc
gtk2_ardour/automation_time_axis.cc
gtk2_ardour/canvas-simpleline.c
gtk2_ardour/editor_canvas.cc
gtk2_ardour/editor_canvas_events.cc
gtk2_ardour/editor_drag.cc
gtk2_ardour/editor_mouse.cc
gtk2_ardour/editor_ops.cc
gtk2_ardour/editor_regions.cc
gtk2_ardour/editor_rulers.cc
gtk2_ardour/editor_selection.cc
gtk2_ardour/gain_meter.cc
gtk2_ardour/group_tabs.cc
gtk2_ardour/gtk_pianokeyboard.c
gtk2_ardour/location_ui.cc
gtk2_ardour/midi_region_view.cc
gtk2_ardour/mixer_strip.cc
gtk2_ardour/monitor_section.cc
gtk2_ardour/mono_panner.cc
gtk2_ardour/panner2d.cc
gtk2_ardour/region_view.cc
gtk2_ardour/route_time_axis.cc
gtk2_ardour/shuttle_control.cc
gtk2_ardour/stereo_panner.cc
gtk2_ardour/time_axis_view.cc
gtk2_ardour/time_axis_view_item.cc
libs/appleutility/CAAudioChannelLayout.h
libs/appleutility/CAAudioUnit.cpp
libs/appleutility/CAReferenceCounted.h
libs/ardour/ardour/audio_unit.h
libs/ardour/ardour/audiosource.h
libs/ardour/ardour/caimportable.h
libs/ardour/ardour/coreaudiosource.h
libs/ardour/ardour/export_channel.h
libs/ardour/ardour/lxvst_plugin.h
libs/ardour/ardour/plugin.h
libs/ardour/audio_playlist_source.cc
libs/ardour/audio_port.cc
libs/ardour/audio_unit.cc
libs/ardour/export_channel.cc
libs/ardour/file_source.cc
libs/ardour/ladspa_plugin.cc
libs/ardour/lxvst_plugin.cc
libs/ardour/midi_diskstream.cc
libs/ardour/midi_playlist_source.cc
libs/ardour/midi_port.cc
libs/ardour/midi_stretch.cc
libs/ardour/pannable.cc
libs/ardour/playlist_source.cc
libs/ardour/plugin.cc
libs/ardour/plugin_manager.cc
libs/ardour/port.cc
libs/ardour/processor.cc
libs/ardour/session.cc
libs/ardour/session_process.cc
libs/ardour/speakers.cc
libs/ardour/vstfxinfofile.cc
libs/audiographer/audiographer/debuggable.h
libs/audiographer/audiographer/process_context.h
libs/evoral/evoral/PatchChange.hpp
libs/evoral/src/ControlSet.cpp
libs/evoral/src/Sequence.cpp
libs/evoral/src/libsmf/smf_load.c
libs/evoral/src/libsmf/smf_save.c
libs/gnomecanvas/libgnomecanvas/gnome-canvas-bpath.c
libs/gnomecanvas/libgnomecanvas/gnome-canvas-line.c
libs/gnomecanvas/libgnomecanvas/gnome-canvas-rich-text.c
libs/gnomecanvas/libgnomecanvas/gnome-canvas-widget.c
libs/gnomecanvas/libgnomecanvas/gnome-canvas.c
libs/gtkmm2ext/bindings.cc
libs/gtkmm2ext/cairocell.cc
libs/gtkmm2ext/gtkapplication_quartz.mm
libs/gtkmm2ext/gtkapplication_x11.c
libs/gtkmm2ext/gtkmm2ext/cell_renderer_pixbuf_multi.h
libs/gtkmm2ext/gtkmm2ext/cell_renderer_pixbuf_toggle.h
libs/gtkmm2ext/gtkmm2ext/dndvbox.h
libs/gtkmm2ext/keyboard.cc
libs/gtkmm2ext/motionfeedback.cc
libs/gtkmm2ext/treeutils.cc
libs/midi++2/midi++/names.h
libs/panners/vbap/vbap.cc
libs/pbd/boost_debug.cc
libs/qm-dsp/dsp/onsets/DetectionFunction.cpp
libs/qm-dsp/dsp/onsets/PeakPicking.cpp
libs/qm-dsp/dsp/signalconditioning/DFProcess.cpp
libs/qm-dsp/dsp/wavelet/Wavelet.cpp
libs/qm-dsp/maths/CosineDistance.cpp
libs/qm-dsp/maths/MathUtilities.cpp
libs/qm-dsp/maths/Polyfit.h
libs/rubberband/src/StretcherProcess.cpp
libs/surfaces/generic_midi/midicontrollable.cc
libs/surfaces/osc/osc.cc
libs/surfaces/osc/osc.h
libs/taglib/taglib/fileref.h
libs/taglib/taglib/mpeg/id3v1/id3v1tag.h
libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp

index a5dafd6757a5e9cb3dba9ab5ce15bac02992386f..1130177fe238ef9775e21daa52bfb90a653e5617 100644 (file)
@@ -3796,7 +3796,7 @@ ARDOUR_UI::missing_file (Session*s, std::string str, DataType type)
 }
 
 int
-ARDOUR_UI::ambiguous_file (std::string file, std::string path, std::vector<std::string> hits)
+ARDOUR_UI::ambiguous_file (std::string file, std::string /*path*/, std::vector<std::string> hits)
 {
        AmbiguousFileDialog dialog (file, hits);
 
index b288961d71c3212914dd5050aa2a54604f2ba4a3..08e0d42ab089dec16bca6350c5e6dce12079fba7 100644 (file)
@@ -707,10 +707,14 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
 
         void step_edit_status_change (bool);
 
+       void platform_specific ();
+       void platform_setup ();
+
        /* these are used only in response to a platform-specific "ShouldQuit" signal
         */
        bool idle_finish ();
        void queue_finish ();
+       void fontconfig_dialog ();
 
        std::list<WindowProxyBase*> _window_proxies;
 
index 0f10af054d0cd488ea1920b0baf1e5d574c7cc2a..256ceca7b0f55fe6438cce2bf2efff373d52a842 100644 (file)
@@ -131,7 +131,7 @@ AUPluginUI::AUPluginUI (boost::shared_ptr<PluginInsert> insert)
 
        smaller_hbox->set_spacing (6);
        smaller_hbox->pack_start (preset_label, false, false, 4);
-       smaller_hbox->pack_start (preset_combo, false, false);
+       smaller_hbox->pack_start (_preset_combo, false, false);
        smaller_hbox->pack_start (save_button, false, false);
 #if 0
        /* one day these might be useful with an AU plugin, but not yet */
@@ -158,7 +158,7 @@ AUPluginUI::AUPluginUI (boost::shared_ptr<PluginInsert> insert)
        pack_start (low_box, false, false);
 
        preset_label.show ();
-       preset_combo.show ();
+       _preset_combo.show ();
        automation_mode_label.show ();
        automation_mode_selector.show ();
        bypass_button.show ();
@@ -276,7 +276,7 @@ AUPluginUI::create_cocoa_view ()
        UInt32     dataSize;
        Boolean    isWritable;
        NSString*           factoryClassName = 0;
-       NSURL*              CocoaViewBundlePath;
+       NSURL*              CocoaViewBundlePath = NULL;
 
        OSStatus result = AudioUnitGetPropertyInfo (*au->get_au(),
                                                    kAudioUnitProperty_CocoaUI,
index 3adb17ab846982f60a6e44604749602c4ae9c5b7..aff72fbf6e0d063976ba34db070f635ca7e98b06 100644 (file)
@@ -1006,7 +1006,7 @@ AudioClock::button_press (GdkEventButton *ev, CairoCell* cell)
 }
 
 bool
-AudioClock::button_release (GdkEventButton *ev, CairoCell* cell)
+AudioClock::button_release (GdkEventButton *ev, CairoCell*)
 {
        if (editable) {
                if (dragging) {
index b0767604c95e3923452bf760e65c8c236bf6738e..e06e50f113558e363c312b2cb724890ce601a261 100644 (file)
@@ -96,10 +96,9 @@ AudioRegionEditor::AudioRegionEditor (Session* s, boost::shared_ptr<AudioRegion>
 
 AudioRegionEditor::~AudioRegionEditor ()
 {
-       pthread_cancel_one (_peak_amplitude_thread_handle);
        void* v;
-       int const r = pthread_join (_peak_amplitude_thread_handle, &v);
-       assert (r == 0);
+       pthread_cancel_one (_peak_amplitude_thread_handle);
+       pthread_join (_peak_amplitude_thread_handle, &v);
 }
 
 void
index e4daf6e74c7a617af769d8840533af68b931677b..4ba09120adb9a60461ee1b6773eb695c55fb4b21 100644 (file)
@@ -955,7 +955,7 @@ AutomationTimeAxisView::set_state_2X (const XMLNode& node, int /*version*/)
 }
 
 int
-AutomationTimeAxisView::set_state (const XMLNode& node, int /*version*/)
+AutomationTimeAxisView::set_state (const XMLNode&, int /*version*/)
 {
        return 0;
 }
index 887f71b411e240de6a74c4003b7131ef21e76079..39a1901f5754201732343155cc54429b625da556 100644 (file)
@@ -389,7 +389,7 @@ gnome_canvas_simpleline_render (GnomeCanvasItem *item,
 }
 
 static void
-gnome_canvas_simpleline_draw (GnomeCanvasItem *item,
+gnome_canvas_simpleline_draw (GnomeCanvasItem *canvas,
                               GdkDrawable *drawable,
                               int x, int y,
                               int width, int height)
@@ -414,7 +414,6 @@ gnome_canvas_simpleline_point (GnomeCanvasItem *item, double x, double y, int cx
        (void) cx;
        (void) cy;
 
-       GnomeCanvasSimpleLine *simpleline;
        double x1, y1, x2, y2;
        double dx, dy;
 
index 1677baa00162a29dbd97d4aae0a6f4c723e620b1..da928a6d9ee888b485e3e843f2ad4ce2730cc635 100644 (file)
@@ -890,7 +890,7 @@ Editor::set_canvas_cursor (Gdk::Cursor* cursor, bool save)
 }
 
 bool
-Editor::track_canvas_key_press (GdkEventKey* event)
+Editor::track_canvas_key_press (GdkEventKey*)
 {
        /* XXX: event does not report the modifier key pressed down, AFAICS, so use the Keyboard object instead */
        if (mouse_mode == Editing::MouseZoom && Keyboard::the_keyboard().key_is_down (GDK_Control_L)) {
@@ -901,7 +901,7 @@ Editor::track_canvas_key_press (GdkEventKey* event)
 }
 
 bool
-Editor::track_canvas_key_release (GdkEventKey* event)
+Editor::track_canvas_key_release (GdkEventKey*)
 {
        if (mouse_mode == Editing::MouseZoom && !Keyboard::the_keyboard().key_is_down (GDK_Control_L)) {
                set_canvas_cursor (_cursors->zoom_in, true);
index 014c925f7de42728f1044895b0044b7772f69fdb..07ae84031fedff43bb5faecd25a66012ff8bf3c6 100644 (file)
@@ -1084,7 +1084,7 @@ Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const & /*c*/,
 }
 
 bool
-Editor::key_press_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType type)
+Editor::key_press_handler (ArdourCanvas::Item*, GdkEvent*, ItemType)
 {
        return false;
 }
index 34e77509633a6e58f37543f22cdf04ede4e9ed83..04dedf97ad4c05d2702b8282f10a9dbca96d4e04 100644 (file)
@@ -2736,7 +2736,7 @@ MarkerDrag::aborted (bool)
 }
 
 void
-MarkerDrag::update_item (Location* location)
+MarkerDrag::update_item (Location*)
 {
         /* noop */
 }
index 9df6de3a8edafacd735f15abf2b1c0e9d36cbd5a..21f2214a7c2502c18e2429296a67dc6ca37842b3 100644 (file)
@@ -1806,7 +1806,7 @@ Editor::enter_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_
 }
 
 bool
-Editor::leave_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_type)
+Editor::leave_handler (ArdourCanvas::Item* item, GdkEvent*, ItemType item_type)
 {
        AutomationLine* al;
        ControlPoint* cp;
@@ -2417,7 +2417,7 @@ Editor::track_height_step_timeout ()
 }
 
 void
-Editor::add_region_drag (ArdourCanvas::Item* item, GdkEvent* event, RegionView* region_view)
+Editor::add_region_drag (ArdourCanvas::Item* item, GdkEvent*, RegionView* region_view)
 {
        assert (region_view);
 
@@ -2439,7 +2439,7 @@ Editor::add_region_drag (ArdourCanvas::Item* item, GdkEvent* event, RegionView*
 }
 
 void
-Editor::add_region_copy_drag (ArdourCanvas::Item* item, GdkEvent* event, RegionView* region_view)
+Editor::add_region_copy_drag (ArdourCanvas::Item* item, GdkEvent*, RegionView* region_view)
 {
        assert (region_view);
 
@@ -2454,7 +2454,7 @@ Editor::add_region_copy_drag (ArdourCanvas::Item* item, GdkEvent* event, RegionV
 }
 
 void
-Editor::add_region_brush_drag (ArdourCanvas::Item* item, GdkEvent* event, RegionView* region_view)
+Editor::add_region_brush_drag (ArdourCanvas::Item* item, GdkEvent*, RegionView* region_view)
 {
        assert (region_view);
 
@@ -2584,7 +2584,7 @@ Editor::set_internal_edit (bool yn)
  *  used by the `join object/range' tool mode.
  */
 void
-Editor::update_join_object_range_location (double x, double y)
+Editor::update_join_object_range_location (double /*x*/, double y)
 {
        /* XXX: actually, this decides based on whether the mouse is in the top or bottom half of a RouteTimeAxisView;
           entered_{track,regionview} is not always setup (e.g. if the mouse is over a TimeSelection), and to get a Region
index b19dd6af779eeac098e1a44d317a7299dfdf0aec..554fffa69c7e5198463a3f18c6e51004a92c2c9c 100644 (file)
@@ -5006,7 +5006,7 @@ void
 Editor::toggle_region_fades (int dir)
 {
        boost::shared_ptr<AudioRegion> ar;
-       bool yn;
+       bool yn = false;
 
        RegionSelection rs = get_regions_from_selection_and_entered ();
 
index 154af6c97776f56635bdded615f4a4d57f4537bd..c6c8f1e9149874165e16117c8a16b300337bb4de 100644 (file)
@@ -214,7 +214,7 @@ EditorRegions::focus_out (GdkEventFocus*)
 }
 
 bool
-EditorRegions::enter_notify (GdkEventCrossing* ev)
+EditorRegions::enter_notify (GdkEventCrossing*)
 {
        if (name_editable) {
                return true;
@@ -743,7 +743,7 @@ EditorRegions::populate_row (boost::shared_ptr<Region> region, TreeModel::Row co
 #endif
 
 void
-EditorRegions::populate_row_used (boost::shared_ptr<Region> region, TreeModel::Row const& row, uint32_t used)
+EditorRegions::populate_row_used (boost::shared_ptr<Region>, TreeModel::Row const& row, uint32_t used)
 {
        char buf[8];
        snprintf (buf, sizeof (buf), "%4d" , used);
index 1c077e85527b4530299e36b801a346443c9863ad..b7a3f2ba5faa74ad10a484225edacac8392bf228 100644 (file)
@@ -1746,7 +1746,7 @@ Editor::set_samples_ruler_scale (framepos_t lower, framepos_t upper)
 }
 
 gint
-Editor::metric_get_samples (GtkCustomRulerMark **marks, gdouble lower, gdouble upper, gint /*maxchars*/)
+Editor::metric_get_samples (GtkCustomRulerMark **marks, gdouble lower, gdouble /*upper*/, gint /*maxchars*/)
 {
        framepos_t pos;
        framepos_t const ilower = (framepos_t) floor (lower);
index c2338347d2d4b85235bca3392c1bc7f5cc3d4c5d..b10865998160664fc6d955703024f0da6032b55f 100644 (file)
@@ -1230,7 +1230,7 @@ Editor::select_all_in_track (Selection::Operation op)
 }
 
 void
-Editor::select_all_internal_edit (Selection::Operation op)
+Editor::select_all_internal_edit (Selection::Operation)
 {
         /* currently limited to MIDI only */
 
index 471239efdc41f2d42aa5aeaced2f340bd56ed0b3..79f5d4b4215f9adc337184722686f9570d02c63e 100644 (file)
@@ -634,7 +634,7 @@ GainMeterBase::gain_slider_button_press (GdkEventButton* ev)
 }
 
 bool
-GainMeterBase::gain_slider_button_release (GdkEventButton* ev)
+GainMeterBase::gain_slider_button_release (GdkEventButton*)
 {
        _amp->gain_control()->stop_touch (false, _amp->session().transport_frame());
        return true;
index e2f8e9905a2f9b3498bea6fe577ed2d2bdf4a8f7..5c713f135217699f813d073a03b5a7d69fbaa0f0 100644 (file)
@@ -603,7 +603,7 @@ GroupTabs::route_group_property_changed (RouteGroup* rg)
 }
 
 void
-GroupTabs::route_added_to_route_group (RouteGroup* rg, boost::weak_ptr<Route> w)
+GroupTabs::route_added_to_route_group (RouteGroup*, boost::weak_ptr<Route> w)
 {
        /* Similarly-spirited hack as in route_group_property_changed */
        
@@ -616,7 +616,7 @@ GroupTabs::route_added_to_route_group (RouteGroup* rg, boost::weak_ptr<Route> w)
 }
 
 void
-GroupTabs::route_removed_from_route_group (RouteGroup* rg, boost::weak_ptr<Route> w)
+GroupTabs::route_removed_from_route_group (RouteGroup*, boost::weak_ptr<Route> w)
 {
        /* Similarly-spirited hack as in route_group_property_changed */
 
index 90405a6c312ca295cd1cfd9971ee806b4b549d15..7332299bfbff40c5fe40b4778bf4476b8b6085d4 100644 (file)
@@ -352,7 +352,7 @@ bind_keys_azerty(PianoKeyboard *pk)
 }
 
 static gint
-keyboard_event_handler(GtkWidget *mk, GdkEventKey *event, gpointer notused)
+keyboard_event_handler(GtkWidget *mk, GdkEventKey *event, gpointer ignored)
 {
        int             note;
        char            *key;
@@ -433,7 +433,7 @@ get_note_for_xy(PianoKeyboard *pk, int x, int y)
 }
 
 static gboolean
-mouse_button_event_handler(PianoKeyboard *pk, GdkEventButton *event, gpointer notused)
+mouse_button_event_handler(PianoKeyboard *pk, GdkEventButton *event, gpointer ignored)
 {
        int             x = event->x;
        int             y = event->y;
@@ -473,7 +473,7 @@ mouse_button_event_handler(PianoKeyboard *pk, GdkEventButton *event, gpointer no
 }
 
 static gboolean
-mouse_motion_event_handler(PianoKeyboard *pk, GdkEventMotion *event, gpointer notused)
+mouse_motion_event_handler(PianoKeyboard *pk, GdkEventMotion *event, gpointer ignored)
 {
        int             note;
 
index c0f5d1f325a59cc0e7833d26b53beecf5d783a66..004bf9e7658edda79b0d1262223b347367db3b80 100644 (file)
@@ -593,7 +593,7 @@ LocationEditRow::preemph_toggled ()
 }
 
 void
-LocationEditRow::end_changed (ARDOUR::Location *loc)
+LocationEditRow::end_changed (ARDOUR::Location *)
 {
        ENSURE_GUI_THREAD (*this, &LocationEditRow::end_changed, loc)
 
index 69f6b87442bd3a3f194ba1496d10f97a6621e182..b79d97d746024a20d01f8ccb5b73e3dc06e0269c 100644 (file)
@@ -388,7 +388,7 @@ MidiRegionView::enter_notify (GdkEventCrossing* ev)
 }
 
 bool
-MidiRegionView::leave_notify (GdkEventCrossing* ev)
+MidiRegionView::leave_notify (GdkEventCrossing*)
 {
        _mouse_mode_connection.disconnect ();
 
@@ -850,7 +850,7 @@ void
 MidiRegionView::channel_edit ()
 {
        bool first = true;
-       uint8_t current_channel;
+       uint8_t current_channel = 0;
 
        if (_selection.empty()) {
                return;
index 7012ad61f5060349fa5694fe7f0b6913be77dde0..15550f4cd451e283bfb5a19d85a67a19cdce7809 100644 (file)
@@ -1880,7 +1880,7 @@ MixerStrip::hide_things ()
 }
 
 bool
-MixerStrip::input_active_button_press (GdkEventButton* ev)
+MixerStrip::input_active_button_press (GdkEventButton*)
 {
        /* nothing happens on press */
        return true;
index de6685fade6446b0bfd5c6516f0e74766f8a7fc9..1bdd27dc6d90661c06c13bf2e3092d504e063f55 100644 (file)
@@ -762,7 +762,7 @@ MonitorSection::setup_knob_images ()
 void
 MonitorSection::update_solo_model ()
 {
-        const char* action_name;
+        const char* action_name = 0;
         Glib::RefPtr<Action> act;
 
         if (Config->get_solo_control_is_listen_control()) {
index 78fec4e6796b7522b0ee50ad95d1c30cb88b6a43..43afcd5c840c3cb639f559f40935317dd40cc41b 100644 (file)
@@ -121,7 +121,7 @@ MonoPanner::value_change ()
 }
 
 bool
-MonoPanner::on_expose_event (GdkEventExpose* ev)
+MonoPanner::on_expose_event (GdkEventExpose*)
 {
        Glib::RefPtr<Gdk::Window> win (get_window());
        Glib::RefPtr<Gdk::GC> gc (get_style()->get_base_gc (get_state()));
@@ -469,13 +469,13 @@ MonoPanner::on_key_press_event (GdkEventKey* ev)
 }
 
 bool
-MonoPanner::on_key_release_event (GdkEventKey* ev)
+MonoPanner::on_key_release_event (GdkEventKey*)
 {
         return false;
 }
 
 bool
-MonoPanner::on_enter_notify_event (GdkEventCrossing* ev)
+MonoPanner::on_enter_notify_event (GdkEventCrossing*)
 {
        grab_focus ();
        Keyboard::magic_widget_grab_focus ();
index d61471d19e1ccadbc7e4ae8184e50969ecc8ec21..ffe9a159542fc03040c7a89c13cddf998b031910 100644 (file)
@@ -853,7 +853,7 @@ Panner2dWindow::on_key_press_event (GdkEventKey* event)
 }
 
 bool
-Panner2dWindow::on_key_release_event (GdkEventKey *event)
+Panner2dWindow::on_key_release_event (GdkEventKey*)
 {
         return true;
 }
index 534c7ef0d6d984c219d24efa47fd5c61a9040759..f213bb89eaab9892c5079bd22bd83dabe7fec715 100644 (file)
@@ -224,7 +224,7 @@ RegionView::~RegionView ()
 }
 
 void
-RegionView::set_silent_frames (const AudioIntervalResult& silences, double threshold)
+RegionView::set_silent_frames (const AudioIntervalResult& silences, double /*threshold*/)
 {
         framecnt_t shortest = max_framecnt;
 
index 81b50f04b67e9dee90634820b9e9bc8c02793b6b..17c0874641731dc211770d2e5d216c08186f7a86 100644 (file)
@@ -1875,7 +1875,7 @@ RouteTimeAxisView::add_processor_automation_curve (boost::shared_ptr<Processor>
 }
 
 void
-RouteTimeAxisView::processor_automation_track_hidden (RouteTimeAxisView::ProcessorAutomationNode* pan, boost::shared_ptr<Processor> i)
+RouteTimeAxisView::processor_automation_track_hidden (RouteTimeAxisView::ProcessorAutomationNode* pan, boost::shared_ptr<Processor>)
 {
        if (!_hidden) {
                pan->menu_item->set_active (false);
@@ -2281,7 +2281,7 @@ RouteTimeAxisView::set_underlay_state()
 }
 
 void
-RouteTimeAxisView::add_underlay (StreamView* v, bool update_xml)
+RouteTimeAxisView::add_underlay (StreamView* v, bool /*update_xml*/)
 {
        if (!v) {
                return;
index dd7cd753e67719da91e3c59c11c6cc9aab5c4e6f..a496ddc0b25c4485daf96ca6d96625e691cea454 100644 (file)
@@ -483,7 +483,7 @@ ShuttleControl::use_shuttle_fract (bool force)
 }
 
 bool
-ShuttleControl::on_expose_event (GdkEventExpose* event)
+ShuttleControl::on_expose_event (GdkEventExpose*)
 {
        cairo_text_extents_t extents;
        Glib::RefPtr<Gdk::Window> win (get_window());
index 7fe204fbfda52e3772d61135971bdd7a3704d60c..690acbfddaf626b632a0e57a5c213b3aee8b408d 100644 (file)
@@ -619,13 +619,13 @@ StereoPanner::on_key_press_event (GdkEventKey* ev)
 }
 
 bool
-StereoPanner::on_key_release_event (GdkEventKey* ev)
+StereoPanner::on_key_release_event (GdkEventKey*)
 {
        return false;
 }
 
 bool
-StereoPanner::on_enter_notify_event (GdkEventCrossing* ev)
+StereoPanner::on_enter_notify_event (GdkEventCrossing*)
 {
        grab_focus ();
        Keyboard::magic_widget_grab_focus ();
index 14cbecd8087b063ff056ad58e006305d8cc05656..4ed057add97877e5c702f4e8751d65a046d2f285 100644 (file)
@@ -397,7 +397,7 @@ TimeAxisView::controls_ebox_motion (GdkEventMotion* ev)
 }
 
 bool
-TimeAxisView::controls_ebox_leave (GdkEventCrossing* ev)
+TimeAxisView::controls_ebox_leave (GdkEventCrossing*)
 {
        if (_have_preresize_cursor) {
                gdk_window_set_cursor (controls_ebox.get_window()->gobj(), _preresize_cursor);
index ce2e6c148522955a9542d32402fb1cb0dace7e66..d9b0bfa2cf42c972612d6ea9953f7a898df24afa 100644 (file)
@@ -109,7 +109,7 @@ TimeAxisViewItem::TimeAxisViewItem(
 }
 
 TimeAxisViewItem::TimeAxisViewItem (const TimeAxisViewItem& other)
-       : sigc::trackable(other)
+       : Selectable (other)
        , PBD::ScopedConnectionList()
        , trackview (other.trackview)
        , _recregion (other._recregion)
index 796f197c3b786f55c2affe1da9e00eb79611b0c8..5c351c29b5223337aa896b0ad1364606451cdda5 100644 (file)
@@ -150,7 +150,7 @@ private:
        
        private:
                ACLRefCounter () : mLayout(NULL) { }
-               ACLRefCounter(const ACLRefCounter&) : mLayout(NULL) { }
+               ACLRefCounter(const ACLRefCounter& other) : CAReferenceCounted (other), mLayout(NULL) { }
                ACLRefCounter& operator=(const ACLRefCounter&) { return *this; }
        };
        
index aaf57f233de261515c033c9bcc0728017c540e64..131969b66c0e2537d42e8cad1adfceb04bc1e6d2 100644 (file)
@@ -191,7 +191,7 @@ private:
 private:
                // get the compiler to tell us when we do a bad thing!!!
        AUState () {}
-       AUState (const AUState&) {}
+        AUState (const AUState& other) : CAReferenceCounted (other) {}
        AUState& operator= (const AUState&) { return *this; } 
 };                                             
                                                
@@ -1084,13 +1084,13 @@ bool            CAAudioUnit::HasCustomView () const
 OSStatus               CAAudioUnit::GetParameter(AudioUnitParameterID inID, AudioUnitScope scope, AudioUnitElement element,
                                                                                        Float32 &outValue) const
 {
-       return mDataPtr ? mDataPtr->GetParameter (inID, scope, element, outValue) : paramErr;
+       return mDataPtr ? (OSStatus) mDataPtr->GetParameter (inID, scope, element, outValue) : paramErr;
 }
 
 OSStatus               CAAudioUnit::SetParameter(AudioUnitParameterID inID, AudioUnitScope scope, AudioUnitElement element,
                                                                                        Float32 value, UInt32 bufferOffsetFrames)
 {
-       return mDataPtr ? mDataPtr->SetParameter (inID, scope, element, value, bufferOffsetFrames) : paramErr;
+       return mDataPtr ? (OSStatus) mDataPtr->SetParameter (inID, scope, element, value, bufferOffsetFrames) : paramErr;
 }
 
 OSStatus               CAAudioUnit::MIDIEvent (UInt32                  inStatus,
@@ -1098,7 +1098,7 @@ OSStatus          CAAudioUnit::MIDIEvent (UInt32                  inStatus,
                                                                UInt32                                  inData2,
                                                                UInt32                                  inOffsetSampleFrame)
 {
-       return mDataPtr ? mDataPtr->MIDIEvent (inStatus, inData1, inData2, inOffsetSampleFrame) : paramErr;
+       return mDataPtr ? (OSStatus) mDataPtr->MIDIEvent (inStatus, inData1, inData2, inOffsetSampleFrame) : paramErr;
 }
 
 OSStatus       CAAudioUnit::StartNote (MusicDeviceInstrumentID         inInstrument,
@@ -1107,15 +1107,15 @@ OSStatus        CAAudioUnit::StartNote (MusicDeviceInstrumentID         inInstrument,
                                                                        UInt32                                          inOffsetSampleFrame,
                                                                        const MusicDeviceNoteParams * inParams)
 {
-       return mDataPtr ? mDataPtr->StartNote (inInstrument, inGroupID, outNoteInstanceID, inOffsetSampleFrame, inParams) 
-                                       : paramErr;
+       return mDataPtr ? (OSStatus) mDataPtr->StartNote (inInstrument, inGroupID, outNoteInstanceID, inOffsetSampleFrame, inParams) 
+               : paramErr;
 }
 
 OSStatus       CAAudioUnit::StopNote (MusicDeviceGroupID               inGroupID,
                                                                        NoteInstanceID                          inNoteInstanceID,
                                                                        UInt32                                          inOffsetSampleFrame)
 {
-       return mDataPtr ? mDataPtr->StopNote (inGroupID, inNoteInstanceID, inOffsetSampleFrame) : paramErr;
+       return mDataPtr ? (OSStatus) mDataPtr->StopNote (inGroupID, inNoteInstanceID, inOffsetSampleFrame) : paramErr;
 }
 
 #pragma mark __Render
@@ -1126,7 +1126,7 @@ OSStatus          CAAudioUnit::Render (AudioUnitRenderActionFlags                         * ioActionFlags,
                                                                                                UInt32                                          inNumberFrames,
                                                                                                AudioBufferList                         * ioData)
 {
-       return mDataPtr ? mDataPtr->Render (ioActionFlags, inTimeStamp, inOutputBusNumber, inNumberFrames, ioData) : paramErr;
+       return mDataPtr ? (OSStatus) mDataPtr->Render (ioActionFlags, inTimeStamp, inOutputBusNumber, inNumberFrames, ioData) : paramErr;
 }
 
 static AURenderCallbackStruct sRenderCallback;
index fc18dc8ca4d92d7f2d697acd3dde281461a6a828..a9c8dccca30c4104146c5ef8692e561cc92e5814 100644 (file)
@@ -70,12 +70,12 @@ public:
                        }
 
 protected:
-    virtual    ~CAReferenceCounted() { }
-       
+       virtual ~CAReferenceCounted() { }
+       CAReferenceCounted(const CAReferenceCounted &) : mRefCount(0) { }
+
 private:
        SInt32          mRefCount;
 
-       CAReferenceCounted(const CAReferenceCounted &) : mRefCount(0) { }
        CAReferenceCounted operator=(const CAReferenceCounted &) { return *this; }
 };
 
index f36e89073bb53cd82e38c5f450cb2c67d9d2cb1e..0a786d54624acf6d168866a87c798a0b1d06301a 100644 (file)
@@ -97,7 +97,6 @@ class AUPlugin : public ARDOUR::Plugin
 
        int set_state(const XMLNode& node, int);
 
-       PresetRecord save_preset (std::string name);
        bool load_preset (PresetRecord);
        std::string current_preset() const;
 
@@ -140,6 +139,10 @@ class AUPlugin : public ARDOUR::Plugin
 
        static std::string maybe_fix_broken_au_id (const std::string&);
 
+  protected:
+       std::string do_save_preset (std::string name);
+       void do_remove_preset (std::string);
+
   private:
        void find_presets ();
 
index 67d5ddce3ad3b965bbc1e34f1402c012c5a740f6..c9eb3bfc45f72c4146d3de45db62e769385f7703 100644 (file)
@@ -145,7 +145,7 @@ class AudioSource : virtual public Source,
        virtual framecnt_t read_unlocked (Sample *dst, framepos_t start, framecnt_t cnt) const = 0;
        virtual framecnt_t write_unlocked (Sample *dst, framecnt_t cnt) = 0;
        virtual std::string peak_path(std::string audio_path) = 0;
-       virtual std::string find_broken_peakfile (std::string missing_peak_path,
+       virtual std::string find_broken_peakfile (std::string /* missing_peak_path */,
                                                  std::string audio_path) { return peak_path (audio_path); }
 
        virtual int read_peaks_with_fpp (PeakData *peaks,
index 2e86ff2c90d1bacff12be624b0fd762ca558b607..1ed8676ee63fd5e4473472d9beda459e11d04496 100644 (file)
@@ -33,11 +33,11 @@ class CAImportableSource : public ImportableSource {
        CAImportableSource (const std::string& path);
        virtual ~CAImportableSource();
 
-       nframes_t read (Sample* buffer, nframes_t nframes);
+       framecnt_t read (Sample* buffer, framecnt_t nframes);
        uint32_t  channels() const;
        framecnt_t length() const;
-       nframes_t samplerate() const;
-       void      seek (nframes_t pos);
+       framecnt_t samplerate() const;
+       void      seek (framepos_t pos);
        framepos_t natural_position() const { return 0; }
        bool clamped_at_unity () const { return false; }
 
index 2f283dfd368bbe266d13c3daf8e9d9c2948987ec..820fa0b9d84c61e63ffd6ff9d69395552112f6cf 100644 (file)
@@ -54,7 +54,7 @@ class CoreAudioSource : public AudioFileSource {
        uint16_t n_channels;
 
        void init_cafile ();
-       int safe_read (Sample*, nframes_t start, framecnt_t cnt, AudioBufferList&) const;
+       int safe_read (Sample*, framepos_t start, framecnt_t cnt, AudioBufferList&) const;
 };
 
 }; /* namespace ARDOUR */
index 1a71f14c3cde6d65214a425bacd3788df6c6a35e..a73d04aa36d37a603e60b95bac5df739a408f316 100644 (file)
@@ -47,7 +47,7 @@ class ExportChannel : public boost::less_than_comparable<ExportChannel>
 
        virtual ~ExportChannel () {}
 
-       virtual void set_max_buffer_size(framecnt_t frames) { }
+       virtual void set_max_buffer_size(framecnt_t) { }
 
        virtual void read (Sample const *& data, framecnt_t frames) const = 0;
        virtual bool empty () const = 0;
index 24793772ef5387e0196270d2532d4f05ed0f84b1..108437b6a3818ede29bbf4c298b6ec3a3731787e 100755 (executable)
@@ -73,10 +73,10 @@ class LXVSTPlugin : public ARDOUR::Plugin
        std::string state_node_name() const { return "lxvst"; }
        void print_parameter (uint32_t, char*, uint32_t len) const;
 
-       bool parameter_is_audio(uint32_t i) const { return false; }
-       bool parameter_is_control(uint32_t i) const { return true; }
-       bool parameter_is_input(uint32_t i) const { return true; }
-       bool parameter_is_output(uint32_t i) const { return false; }
+       bool parameter_is_audio(uint32_t) const { return false; }
+       bool parameter_is_control(uint32_t) const { return true; }
+       bool parameter_is_input(uint32_t) const { return true; }
+       bool parameter_is_output(uint32_t) const { return false; }
 
        bool load_preset (PresetRecord);
        int first_user_preset_index () const;
index 2c819e96f2287f30f593b9328aaa2e54c69ed515..fcd7d6d19b81c77f6d59fe07d7973e9840734349 100644 (file)
@@ -136,8 +136,7 @@ class Plugin : public PBD::StatefulDestructible, public Latent
 
        typedef std::map<const std::string, const float> ScalePoints;
 
-       virtual boost::shared_ptr<ScalePoints>
-       get_scale_points(uint32_t port_index) const {
+       virtual boost::shared_ptr<ScalePoints> get_scale_points(uint32_t /*port_index*/) const {
                return boost::shared_ptr<ScalePoints>();
        }
 
index 79c0c12691e162413037271c7e1279b601136262..141a8495f9eb75b326e1244615ed03e3db37ca2f 100644 (file)
@@ -171,7 +171,7 @@ AudioPlaylistSource::read_unlocked (Sample* dst, framepos_t start, framecnt_t cn
 }
 
 framecnt_t
-AudioPlaylistSource::write_unlocked (Sample *src, framecnt_t cnt)
+AudioPlaylistSource::write_unlocked (Sample *, framecnt_t)
 {
        fatal << string_compose (_("programming error: %1"), "AudioPlaylistSource::write() called - should be impossible") << endmsg;
        /*NOTREACHED*/
index 556f6e0c2a0775ae6430e8f5eda76036acbf126d..ae64d797c9da5268d1a3c0b16e5f1b4697bfc8be 100644 (file)
@@ -53,7 +53,7 @@ AudioPort::cycle_start (pframes_t nframes)
 }
 
 void
-AudioPort::cycle_end (pframes_t nframes)
+AudioPort::cycle_end (pframes_t)
 {
         if (sends_output() && !_buffer->written()) {
                 /* we can't use nframes here because the current buffer capacity may
index a4d2dd241eb01f2ab19fd2856dbbeefbdab16075..04efb2e50c66cd9e4a7de9a03a1e4bc4240653d5 100644 (file)
@@ -1341,7 +1341,7 @@ AUPlugin::get_beat_and_tempo_callback (Float64* outCurrentBeat,
                float beat;
                beat = metric.meter().beats_per_bar() * bbt.bars;
                beat += bbt.beats;
-               beat += bbt.ticks / BBT_Time::ticks_per_beat;
+               beat += bbt.ticks / Timecode::BBT_Time::ticks_per_beat;
                *outCurrentBeat = beat;
        }
 
@@ -1381,8 +1381,9 @@ AUPlugin::get_musical_time_location_callback (UInt32*   outDeltaSampleOffsetToNe
                        /* on the beat */
                        *outDeltaSampleOffsetToNextBeat = 0;
                } else {
-                       *outDeltaSampleOffsetToNextBeat = (UInt32) floor (((BBT_Time::ticks_per_beat - bbt.ticks)/BBT_Time::ticks_per_beat) * // fraction of a beat to next beat
-                                                                         metric.tempo().frames_per_beat(_session.frame_rate(), metric.meter())); // frames per beat
+                       *outDeltaSampleOffsetToNextBeat = (UInt32) 
+                               floor (((Timecode::BBT_Time::ticks_per_beat - bbt.ticks)/Timecode::BBT_Time::ticks_per_beat) * // fraction of a beat to next beat
+                                      metric.tempo().frames_per_beat(_session.frame_rate(), metric.meter())); // frames per beat
                }
        }
 
@@ -1473,7 +1474,7 @@ AUPlugin::get_transport_state_callback (Boolean*  outIsPlaying,
                                        float beat;
                                        beat = metric.meter().beats_per_bar() * bbt.bars;
                                        beat += bbt.beats;
-                                       beat += bbt.ticks / BBT_Time::ticks_per_beat;
+                                       beat += bbt.ticks / Timecode::BBT_Time::ticks_per_beat;
 
                                        *outCycleStartBeat = beat;
                                }
@@ -1485,7 +1486,7 @@ AUPlugin::get_transport_state_callback (Boolean*  outIsPlaying,
                                        float beat;
                                        beat = metric.meter().beats_per_bar() * bbt.bars;
                                        beat += bbt.beats;
-                                       beat += bbt.ticks / BBT_Time::ticks_per_beat;
+                                       beat += bbt.ticks / Timecode::BBT_Time::ticks_per_beat;
 
                                        *outCycleEndBeat = beat;
                                }
@@ -1554,7 +1555,7 @@ AUPlugin::parameter_is_output (uint32_t) const
 }
 
 void
-AUPlugin::add_state (XMLNode* root)
+AUPlugin::add_state (XMLNode* root) const
 {
        LocaleGuard lg (X_("POSIX"));
 
@@ -1573,7 +1574,7 @@ AUPlugin::add_state (XMLNode* root)
 
        if (!xmlData) {
                error << _("Could not create XML version of property list") << endmsg;
-               return *root;
+               return;
        }
 
        /* re-parse XML bytes to create a libxml++ XMLTree that we can merge into
@@ -1662,7 +1663,7 @@ AUPlugin::set_state(const XMLNode& node, int version)
 }
 
 bool
-AUPlugin::load_preset (PluginRecord r)
+AUPlugin::load_preset (PresetRecord r)
 {
        Plugin::load_preset (r);
 
@@ -1675,7 +1676,7 @@ AUPlugin::load_preset (PluginRecord r)
 
        /* look first in "user" presets */
 
-       if ((ux = user_preset_map.find (preset_label)) != user_preset_map.end()) {
+       if ((ux = user_preset_map.find (r.label)) != user_preset_map.end()) {
 
                if ((propertyList = load_property_list (ux->second)) != 0) {
                        TRACE_API ("set preset from user presets\n");
@@ -1692,7 +1693,7 @@ AUPlugin::load_preset (PluginRecord r)
                        CFRelease(propertyList);
                }
 
-       } else if ((fx = factory_preset_map.find (preset_label)) != factory_preset_map.end()) {
+       } else if ((fx = factory_preset_map.find (r.label)) != factory_preset_map.end()) {
 
                AUPreset preset;
 
@@ -1725,8 +1726,13 @@ AUPlugin::load_preset (PluginRecord r)
 #endif
 }
 
-PresetRecord
-AUPlugin::save_preset (string preset_name)
+void
+AUPlugin::do_remove_preset (std::string) 
+{
+}
+
+string
+AUPlugin::do_save_preset (string preset_name)
 {
 #ifdef AU_STATE_SUPPORT
        CFPropertyListRef propertyList;
@@ -1776,7 +1782,7 @@ AUPlugin::save_preset (string preset_name)
 
        CFRelease(propertyList);
 
-       return ret;
+       return string ("file:///") + user_preset_path;
 #else
        if (!seen_saving_message) {
                info << string_compose (_("Saving AudioUnit presets is not supported in this build of %1. Consider paying for a newer version"),
@@ -1784,7 +1790,7 @@ AUPlugin::save_preset (string preset_name)
                     << endmsg;
                seen_saving_message = true;
        }
-       return false;
+       return string();
 #endif
 }
 
@@ -2006,7 +2012,7 @@ AUPlugin::find_presets ()
        /* now fill the vector<string> with the names we have */
 
        for (UserPresetMap::iterator i = user_preset_map.begin(); i != user_preset_map.end(); ++i) {
-               _presets.insert (i->second, Plugin::PresetRecord (i->second, i->first));
+               _presets.insert (make_pair (i->second, Plugin::PresetRecord (i->second, i->first)));
        }
 
        /* add factory presets */
@@ -2014,7 +2020,7 @@ AUPlugin::find_presets ()
        for (FactoryPresetMap::iterator i = factory_preset_map.begin(); i != factory_preset_map.end(); ++i) {
                /* XXX: dubious */
                string const uri = string_compose ("%1", _presets.size ());
-               _presets.push_back (uri, Plugin::PresetRecord (uri, i->first));
+               _presets.insert (make_pair (uri, Plugin::PresetRecord (uri, i->first)));
        }
 
 #endif
@@ -2082,10 +2088,12 @@ AUPluginInfo::discover ()
 
        PluginInfoList* plugs = new PluginInfoList;
 
+#if 0
        discover_fx (*plugs);
        discover_music (*plugs);
        discover_generators (*plugs);
        discover_instruments (*plugs);
+#endif
 
        return plugs;
 }
index 785648393ec86b53114e0fc1d53187d7afedc4af..4593c4de9fbf92bc8a22f9e181a7404925126a41 100644 (file)
@@ -241,13 +241,13 @@ RouteExportChannel::read (Sample const *& data, framecnt_t frames) const
 }
 
 void
-RouteExportChannel::get_state (XMLNode * node) const
+RouteExportChannel::get_state (XMLNode *) const
 {
        // TODO
 }
 
 void
-RouteExportChannel::set_state (XMLNode * node, Session & session)
+RouteExportChannel::set_state (XMLNode *, Session &)
 {
        // TODO
 }
index 877a0a49390465b570a39c3a3d8f187dd90ac79b..e35ee81364ce17afd9353b5137d16fa1ec633ca8 100644 (file)
@@ -235,7 +235,7 @@ FileSource::move_to_trash (const string& trash_dir_name)
  */
 bool
 FileSource::find (Session& s, DataType type, const string& path, bool must_exist,
-                 bool& isnew, uint16_t& chan, string& found_path)
+                 bool& isnew, uint16_t& /* chan */, string& found_path)
 {
        bool ret = false;
         string keeppath;
index 1fc8b2f1a0012352030747760e7eb6be14f17a36..ef1a6b66823a8413cb540446425171351a0d2c94 100644 (file)
@@ -761,7 +761,7 @@ LadspaPlugin::load_preset (PresetRecord r)
 
 /* XXX: should be in liblrdf */
 static void
-lrdf_remove_preset (const char *source, const char *setting_uri)
+lrdf_remove_preset (const char* /*source*/, const char *setting_uri)
 {
        lrdf_statement p;
        lrdf_statement *q;
index 737d1c736022b4ea2c1253ef5f4a79c1b4924b41..d42679742b0a4ba4941dbdd1f003b7282c894584 100755 (executable)
@@ -125,7 +125,7 @@ LXVSTPlugin::set_block_size (pframes_t nframes)
 }
 
 float 
-LXVSTPlugin::default_value (uint32_t port)
+LXVSTPlugin::default_value (uint32_t)
 {
        return 0;
 }
@@ -346,7 +346,7 @@ LXVSTPlugin::load_plugin_preset (PresetRecord r)
        int index;
        int const p = sscanf (r.uri.c_str(), "VST:%d:%d", &id, &index);
        assert (p == 2);
-
+       
        _vstfx->want_program = index;
        return true;
 }
@@ -653,7 +653,7 @@ LXVSTPlugin::has_editor () const
 }
 
 void 
-LXVSTPlugin::print_parameter (uint32_t param, char *buf, uint32_t len) const
+LXVSTPlugin::print_parameter (uint32_t param, char *buf, uint32_t /*len*/) const
 {
        char *first_nonws;
 
index bf5be343e24b06243a3c16203c97fc759bb435fd..28ee12cc5ae3f574d0c24cf1bf4366a7883096d5 100644 (file)
@@ -291,6 +291,7 @@ MidiDiskstream::use_copy_playlist ()
 int
 MidiDiskstream::set_destructive (bool yn)
 {
+       yn = 0; // stop pedantic gcc complaints about unused parameter
        assert( ! destructive());
        assert( ! yn);
        return -1;
index 3b2c8dbb489ec574a1e168fd35b0e877c3b22dcd..6270ad43398d1bce89659f9a43dbee136e25bada 100644 (file)
@@ -58,7 +58,7 @@ on other ways to approach this issue.
 ********************************************************************************/
 
 MidiPlaylistSource::MidiPlaylistSource (Session& s, const ID& orig, const std::string& name, boost::shared_ptr<MidiPlaylist> p,
-                                       uint32_t chn, frameoffset_t begin, framecnt_t len, Source::Flag flags)
+                                       uint32_t /*chn*/, frameoffset_t begin, framecnt_t len, Source::Flag flags)
        : Source (s, DataType::MIDI, name)
        , MidiSource (s, name, flags)
        , PlaylistSource (s, orig, name, p, DataType::MIDI, begin, len, flags)
@@ -128,9 +128,9 @@ MidiPlaylistSource::length (framepos_t)  const
 
 framepos_t
 MidiPlaylistSource::read_unlocked (Evoral::EventSink<framepos_t>& dst,
-                                  framepos_t position,
+                                  framepos_t /*position*/,
                                   framepos_t start, framecnt_t cnt,
-                                  MidiStateTracker* tracker) const
+                                  MidiStateTracker*) const
 {
        boost::shared_ptr<MidiPlaylist> mp = boost::dynamic_pointer_cast<MidiPlaylist> (_playlist);
 
@@ -143,8 +143,8 @@ MidiPlaylistSource::read_unlocked (Evoral::EventSink<framepos_t>& dst,
 
 framepos_t
 MidiPlaylistSource::write_unlocked (MidiRingBuffer<framepos_t>& dst,
-                                   framepos_t position,
-                                   framecnt_t cnt)
+                                   framepos_t,
+                                   framecnt_t)
 {
        fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::write_unlocked() called - should be impossible") << endmsg;
        /*NOTREACHED*/
@@ -159,7 +159,7 @@ MidiPlaylistSource::append_event_unlocked_beats(const Evoral::Event<Evoral::Musi
 }
 
 void
-MidiPlaylistSource::append_event_unlocked_frames(const Evoral::Event<framepos_t>& ev, framepos_t source_start)
+MidiPlaylistSource::append_event_unlocked_frames(const Evoral::Event<framepos_t>& /* ev */, framepos_t /*source_start*/)
 {
        fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::append_event_unlocked_frames() called - should be impossible") << endmsg;
        /*NOTREACHED*/
index c27332fce12486b968e30664ffd0016c4ee721a5..50d4ce64e83f784675136e42db080bd143c018af 100644 (file)
@@ -155,7 +155,7 @@ MidiPort::resolve_notes (void* jack_buffer, MidiBuffer::TimeType when)
 }
 
 void
-MidiPort::flush_buffers (pframes_t nframes, framepos_t time)
+MidiPort::flush_buffers (pframes_t nframes, framepos_t /*time*/)
 {
        if (sends_output ()) {
 
index d9ac1403a9b2ff8d31736cd77bc180a51d43d3b5..2ae86a6d1c39e161cfbf8cac5ccdb720938d1abd 100644 (file)
@@ -42,7 +42,7 @@ MidiStretch::~MidiStretch ()
 }
 
 int
-MidiStretch::run (boost::shared_ptr<Region> r, Progress* progress)
+MidiStretch::run (boost::shared_ptr<Region> r, Progress*)
 {
        SourceList nsrcs;
        char suffix[32];
index ba4632f2b06a5419b939ee5c476eeb0689d63b49..4dad58ed12b2d45fa524ce8544a90ad56665e7bf 100644 (file)
@@ -182,7 +182,7 @@ Pannable::get_state ()
 }
 
 XMLNode&
-Pannable::state (bool full)
+Pannable::state (bool /*full*/)
 {
        XMLNode* node = new XMLNode (X_("Pannable"));
 
index f68033c815280f8b37e3056f274d26e3a8792c50..4c01831b02380012c077a8c3203c202687879d02 100644 (file)
@@ -44,7 +44,7 @@ using namespace ARDOUR;
 using namespace PBD;
 
 PlaylistSource::PlaylistSource (Session& s, const ID& orig, const std::string& name, boost::shared_ptr<Playlist> p, DataType type,
-                               frameoffset_t begin, framecnt_t len, Source::Flag flags)
+                               frameoffset_t begin, framecnt_t len, Source::Flag /*flags*/)
        : Source (s, type, name)
        , _playlist (p)
        , _original (orig)
@@ -92,7 +92,7 @@ PlaylistSource::add_state (XMLNode& node)
 }
 
 int
-PlaylistSource::set_state (const XMLNode& node, int version)
+PlaylistSource::set_state (const XMLNode& node, int /*version*/)
 {
        /* check that we have a playlist ID */
 
index 153c624a5afbf517c4b532b8c05aa42dfb64375a..12760e5d6e269665f2513fa6255ad07f8bf9d4fe 100644 (file)
@@ -236,7 +236,7 @@ Plugin::preset_by_uri (const string& uri)
 
 int
 Plugin::connect_and_run (BufferSet& bufs,
-                        ChanMapping in_map, ChanMapping out_map,
+                        ChanMapping /*in_map*/, ChanMapping /*out_map*/,
                         pframes_t nframes, framecnt_t offset)
 {
        if (bufs.count().n_midi() > 0) {
@@ -306,7 +306,7 @@ Plugin::set_parameter (uint32_t which, float val)
 }
 
 int
-Plugin::set_state (const XMLNode& node, int version)
+Plugin::set_state (const XMLNode& node, int /*version*/)
 {
        XMLProperty const * p = node.property (X_("last-preset-uri"));
        if (p) {
index 204867a43dab5527884017197f312f62542503fe..613fc85c6d6bd983628bad77c6f438547b1a0164 100644 (file)
@@ -652,7 +652,7 @@ PluginManager::add_lxvst_directory (string path)
        return -1;
 }
 
-static bool lxvst_filter (const string& str, void *arg)
+static bool lxvst_filter (const string& str, void *)
 {
        /* Not a dotfile, has a prefix before a period, suffix is "so" */
 
index 5a7c859dbd29109015ff9895d0ba744c9bd8f711..b418943bbab908512f44b422c832f2aaa4dab693 100644 (file)
@@ -230,7 +230,7 @@ Port::reset ()
 }
 
 void
-Port::cycle_start (pframes_t nframes)
+Port::cycle_start (pframes_t)
 {
         _port_buffer_offset = 0;
 }
@@ -307,7 +307,7 @@ Port::private_latency_range (bool playback) const
 }
 
 jack_latency_range_t
-Port::public_latency_range (bool playback) const
+Port::public_latency_range (bool /*playback*/) const
 {
        jack_latency_range_t r;
 
index f7afeb99a727d00ad8e189fe36b62cef2a42c671..8b54bd4f55bcd70aef5ab653359af7e518360e64 100644 (file)
@@ -76,6 +76,7 @@ Processor::Processor (const Processor& other)
        : Evoral::ControlSet (other)
        , SessionObject (other.session(), other.name())
        , Automatable (other.session())
+       , Latent (other)
        , _pending_active(other._pending_active)
        , _active(other._active)
        , _next_ab_is_active(false)
index 5b1dd3894f2a0669d17e9a1d09d8a807075b825f..a42f2d44302a1332daec15d250f50c045c9386bd 100644 (file)
@@ -2511,7 +2511,7 @@ Session::io_name_is_legal (const std::string& name)
 }
 
 void
-Session::set_exclusive_input_active (boost::shared_ptr<Route> rt, bool others_on)
+Session::set_exclusive_input_active (boost::shared_ptr<Route> rt, bool /*others_on*/)
 {
        RouteList rl;
        vector<string> connections;
index 947bceac9dba9edb8a4c214e173f698339f0bbbd..4d974d483082a32a976d3e5603e19518b822274b 100644 (file)
@@ -617,7 +617,7 @@ Session::calculate_moving_average_of_slave_delta (int dir, framecnt_t this_delta
 }
 
 void
-Session::track_slave_state (float slave_speed, framepos_t slave_transport_frame, framecnt_t this_delta)
+Session::track_slave_state (float slave_speed, framepos_t slave_transport_frame, framecnt_t /*this_delta*/)
 {
        if (slave_speed != 0.0f) {
 
index 71e524f49007c75573d3cdc3b382be20bf593d8a..51bae165852a61e37552beb8d1033a7e0e03fecd 100644 (file)
@@ -71,6 +71,7 @@ Speakers::Speakers ()
 }
 
 Speakers::Speakers (const Speakers& s)
+       : Stateful ()
 {
         _speakers = s._speakers;
 }
index 2d54f4d1cd31026fb893101ad7ba644a02a14f13..076cdad55fda3770a7ed0da92a028713c4214e49 100755 (executable)
@@ -297,12 +297,12 @@ static VSTFXInfo* vstfx_info_from_plugin(VSTFX *vstfx)
 /* A simple 'dummy' audiomaster callback which should be ok,
 we will only be instantiating the plugin in order to get its info*/
 
-static long simple_master_callback(struct AEffect *fx, long opcode, long index, long value, void *ptr, float opt)
+static long simple_master_callback(struct AEffect *, long opcode, long, long, void *, float)
 {
 
-       if(opcode == audioMasterVersion)
+       if (opcode == audioMasterVersion)
                return 2;
-    else
+       else
                return 0;
 }
 
index 5ef382890b04f9e187d6422674b2957318f1ac4b..79e0f80dd30a5a8f11a1107fcfb75fdcb687aba2 100644 (file)
@@ -44,6 +44,7 @@ class Debuggable
 
        bool debug_level (DebugLevel level) {
                #ifdef NDEBUG
+               level = DEFAULT_DEBUG_LEVEL; /* stop pedantic gcc complaints about unused parameter */
                return false;
                #else
                return L >= level;
index 843c09b618138b157f674eb5770295a15583301a..b73f5d69d5cdf0ec51e8d53bc26311f9d3a95676 100644 (file)
@@ -43,7 +43,7 @@ public:
        
        /// Normal copy constructor
        ProcessContext (ProcessContext<T> const & other)
-               : _data (other._data), _frames (other._frames), _channels (other._channels), _flags (other._flags)
+       : _data (other._data), _frames (other._frames), _channels (other._channels), _flags (other._flags)
        { /* No need to validate data */ }
        
        /// "Copy constructor" with unique data, frame and channel count, but copies flags
index 576a1d2e983d61fc706420636d3a59774e20a3e6..aaa481516fee4fb5c3bed80f4eae6606e5090747 100644 (file)
@@ -146,7 +146,9 @@ public:
                case 2:
                        return _program_change;
                default:
-                       assert (false);
+                       abort ();
+                       /*NOTREACHED*/
+                       return _program_change;
                }
        }
 
index 6b793a08eae91c89644e3938ca768ecd91e733e6..bdc73121d246cbcb568f11c67d6bc351b9ef7597 100644 (file)
@@ -32,7 +32,7 @@ ControlSet::ControlSet()
 {
 }
 
-ControlSet::ControlSet (const ControlSet& other)
+ControlSet::ControlSet (const ControlSet&)
         : noncopyable ()
 {
         /* derived class must copy controls */
index fb10bfac7bd5e6c16ebcbc04453c24fe34f4046b..a7d58348e248d50ca79eb7d94dbc97f6b606fe86 100644 (file)
@@ -1249,7 +1249,7 @@ template<typename Time>
 void
 Sequence<Time>::dump (ostream& str) const
 {
-       Sequence<Time>::const_iterator i;
+       typename Sequence<Time>::const_iterator i;
        str << "+++ dump\n";
        for (i = begin(); i != end(); ++i) {
                str << *i << endl;
index 060dc5849ea6feb49b0c6f844abab0047204956d..90a22509b57f714354b9d4dcf95901d89f4a24eb 100644 (file)
@@ -275,7 +275,8 @@ is_escape_byte(const unsigned char status)
 static int32_t
 expected_sysex_length(const unsigned char status, const unsigned char *second_byte, const size_t buffer_length, int32_t *consumed_bytes)
 {
-       uint32_t sysex_length, len;
+       uint32_t sysex_length = 0;
+       uint32_t len = 0;
 
        assert(status == 0xF0);
 
@@ -424,7 +425,8 @@ extract_escaped_event(const unsigned char *buf, const size_t buffer_length, smf_
        (void) last_status;
        
        int status;
-       int32_t message_length, vlq_length;
+       int32_t message_length = 0;
+       int32_t vlq_length = 0;
        const unsigned char *c = buf;
 
        status = *buf;
@@ -645,7 +647,8 @@ smf_event_is_textual(const smf_event_t *event)
 char *
 smf_event_extract_text(const smf_event_t *event)
 {
-       uint32_t string_length, length_length;
+       uint32_t string_length = 0;
+       uint32_t length_length = 0;
 
        if (!smf_event_is_textual(event))
                return (NULL);
index b99af75461b094207d11d3b9f967fe0aa6d1d7db..0540232707f9366b329147051ad955241412aeb6 100644 (file)
@@ -180,6 +180,7 @@ smf_format_vlq(unsigned char *buf, int length, unsigned long value)
        }
 
        assert(i <= length);
+       length = length; // get rid of stupid gcc warnings about unused params if assert() is null
 
        /* + 1, because "i" is an offset, not a count. */
        return (i + 1);
index f7f564a94df34700c6edb5279c4b3e60fcb47173..d67595225d2612ad0d7ad8bd7c5a326f617cec75 100644 (file)
@@ -108,7 +108,7 @@ gnome_canvas_bpath_class_init (GnomeCanvasBpathClass *class)
 }
 
 static void
-gnome_canvas_bpath_init (GnomeCanvasBpath *bpath)
+gnome_canvas_bpath_init (GnomeCanvasBpathbpath)
 {
 
 }
index b35a4180723467e8151829abcdecb3b48984ceba..8c1a6e9cc7b629f9b0dcd4990f8e3b23b071dfeb 100644 (file)
@@ -1125,7 +1125,7 @@ gnome_canvas_line_unrealize (GnomeCanvasItem *item)
 }
 
 static void
-item_to_canvas (GnomeCanvas *canvas, double *item_coords, GdkPoint *canvas_coords, int num_points,
+item_to_canvas (GnomeCanvas * canvas, double *item_coords, GdkPoint *canvas_coords, int num_points,
                int *num_drawn_points, double i2c[6], int x, int y)
 {
        int i;
index 2a50f2ed4df8e85cdb9b70e0d0a24c219c09c7a8..cf7c5290e088f60d97b31c133cfe8305aba3792e 100644 (file)
@@ -806,15 +806,15 @@ gnome_canvas_rich_text_move_cursor(GnomeCanvasRichText *text,
 } /* gnome_canvas_rich_text_move_cursor */
 
 static gboolean
-whitespace(gunichar ch, gpointer user_data)
+whitespace(gunichar ch, gpointer ignored)
 {
        return (ch == ' ' || ch == '\t');
 } /* whitespace */
 
 static gboolean
-not_whitespace(gunichar ch, gpointer user_data)
+not_whitespace(gunichar ch, gpointer ignored)
 {
-       return !whitespace(ch, user_data);
+       return !whitespace(ch, ignored);
 } /* not_whitespace */
 
 static gboolean
@@ -911,7 +911,7 @@ gnome_canvas_rich_text_delete_from_cursor(GnomeCanvasRichText *text,
 
 static gint
 selection_motion_event_handler(GnomeCanvasRichText *text, GdkEvent *event,
-                              gpointer data)
+                              gpointer ignored)
 {
        GtkTextIter newplace;
        GtkTextMark *mark;
@@ -936,7 +936,7 @@ selection_motion_event_handler(GnomeCanvasRichText *text, GdkEvent *event,
 static void
 gnome_canvas_rich_text_start_selection_drag(GnomeCanvasRichText *text,
                                            const GtkTextIter *iter,
-                                           GdkEventButton *button)
+                                           GdkEventButton * button)
 {
        GtkTextIter newplace;
 
@@ -958,7 +958,7 @@ gnome_canvas_rich_text_start_selection_drag(GnomeCanvasRichText *text,
 
 static gboolean
 gnome_canvas_rich_text_end_selection_drag(GnomeCanvasRichText *text,
-                                         GdkEventButton *event)
+                                         GdkEventButton * event)
 {
        if (text->_priv->selection_drag_handler == 0)
                return FALSE;
@@ -1216,7 +1216,7 @@ gnome_canvas_rich_text_key_press_event(GnomeCanvasItem *item,
 } /* gnome_canvas_rich_text_key_press_event */
 
 static gint
-gnome_canvas_rich_text_key_release_event(GnomeCanvasItem *item, 
+gnome_canvas_rich_text_key_release_event(GnomeCanvasItem * item, 
                                         GdkEventKey *event)
 {
        return FALSE;
@@ -1403,7 +1403,7 @@ gnome_canvas_rich_text_button_release_event(GnomeCanvasItem *item,
 
 static gint
 gnome_canvas_rich_text_focus_in_event(GnomeCanvasItem *item,
-                                     GdkEventFocus *event)
+                                     GdkEventFocus * event)
 {
        GnomeCanvasRichText *text = GNOME_CANVAS_RICH_TEXT(item);
 
@@ -1417,7 +1417,7 @@ gnome_canvas_rich_text_focus_in_event(GnomeCanvasItem *item,
 
 static gint
 gnome_canvas_rich_text_focus_out_event(GnomeCanvasItem *item,
-                                      GdkEventFocus *event)
+                                      GdkEventFocus * event)
 {
        GnomeCanvasRichText *text = GNOME_CANVAS_RICH_TEXT(item);
 
@@ -1685,7 +1685,7 @@ request_update(gpointer data)
 } /* request_update */
 
 static void
-invalidated_handler(GtkTextLayout *layout, gpointer data)
+invalidated_handler(GtkTextLayout * layout, gpointer data)
 {
        GnomeCanvasRichText *text = GNOME_CANVAS_RICH_TEXT(data);
 
@@ -1714,7 +1714,7 @@ scale_fonts(GtkTextTag *tag, gpointer data)
 } /* scale_fonts */
 
 static void
-changed_handler(GtkTextLayout *layout, gint start_y, 
+changed_handler(GtkTextLayout * layout, gint start_y, 
                gint old_height, gint new_height, gpointer data)
 {
        GnomeCanvasRichText *text = GNOME_CANVAS_RICH_TEXT(data);
@@ -1864,7 +1864,7 @@ gnome_canvas_rich_text_get_iter_at_location (GnomeCanvasRichText *text,
 
 
 static void
-gnome_canvas_rich_text_set_attributes_from_style(GnomeCanvasRichText *text,
+gnome_canvas_rich_text_set_attributes_from_style(GnomeCanvasRichText * text,
                                                 GtkTextAttributes *values,
                                                 GtkStyle *style)
 {
index d94942c8a5d33b561dfd8acf2971523918b56ce7..6ac14365d3dd8578391d325d1a10dcaca90180e5 100644 (file)
@@ -365,7 +365,7 @@ gnome_canvas_widget_set_property (GObject            *object,
                break;
 
        case PROP_ANCHOR:
-               if (witem->anchor != g_value_get_enum (value))
+               if (witem->anchor != (unsigned int) g_value_get_enum (value))
                {
                        witem->anchor = g_value_get_enum (value);
                        update = TRUE;
@@ -469,8 +469,8 @@ gnome_canvas_widget_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_
 }
 
 static void
-gnome_canvas_widget_render (GnomeCanvasItem *item,
-                           GnomeCanvasBuf *buf)
+gnome_canvas_widget_render (GnomeCanvasItem * item,
+                           GnomeCanvasBuf * buf)
 {
 #if 0
        GnomeCanvasWidget *witem;
@@ -484,8 +484,8 @@ gnome_canvas_widget_render (GnomeCanvasItem *item,
 }
 
 static void
-gnome_canvas_widget_draw (GnomeCanvasItem *item,
-                         GdkDrawable *drawable,
+gnome_canvas_widget_draw (GnomeCanvasItem * item,
+                         GdkDrawable * drawable,
                          int x, int y,
                          int width, int height)
 {
index ae93b1e311447f6a58428e742fe3f52bc49c4a43..9813f5d33f9a4410ed3dce7a72c0919153a91a7e 100644 (file)
@@ -388,7 +388,7 @@ gnome_canvas_item_unmap (GnomeCanvasItem *item)
 
 /* Update handler for canvas items */
 static void
-gnome_canvas_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, int flags)
+gnome_canvas_item_update (GnomeCanvasItem *item, double *affine, ArtSVP * clip_path, int flags)
 {
        GTK_OBJECT_UNSET_FLAGS (item, GNOME_CANVAS_ITEM_NEED_UPDATE);
        GTK_OBJECT_UNSET_FLAGS (item, GNOME_CANVAS_ITEM_NEED_AFFINE);
@@ -1423,7 +1423,7 @@ gnome_canvas_group_class_init (GnomeCanvasGroupClass *class)
 
 /* Object initialization function for GnomeCanvasGroup */
 static void
-gnome_canvas_group_init (GnomeCanvasGroup *group)
+gnome_canvas_group_init (GnomeCanvasGroup * group)
 {
 #if 0
        group->xpos = 0.0;
index 6002f16371814dd9d12f07c10ef069bc805196d1..92004e4d2707980fdc12d31f89bbda78b183e56a 100644 (file)
@@ -217,7 +217,7 @@ Bindings::set_action_map (ActionMap& am)
 bool
 Bindings::activate (KeyboardKey kb, Operation op)
 {
-        KeybindingMap* kbm;
+        KeybindingMap* kbm = 0;
 
         switch (op) {
         case Press:
@@ -244,7 +244,7 @@ Bindings::activate (KeyboardKey kb, Operation op)
 void
 Bindings::add (KeyboardKey kb, Operation op, RefPtr<Action> what)
 {
-        KeybindingMap* kbm;
+        KeybindingMap* kbm = 0;
 
         switch (op) {
         case Press:
@@ -269,7 +269,7 @@ Bindings::add (KeyboardKey kb, Operation op, RefPtr<Action> what)
 void
 Bindings::remove (KeyboardKey kb, Operation op)
 {
-        KeybindingMap* kbm;
+        KeybindingMap* kbm = 0;
 
         switch (op) {
         case Press:
@@ -290,7 +290,7 @@ Bindings::remove (KeyboardKey kb, Operation op)
 bool
 Bindings::activate (MouseButton bb, Operation op)
 {
-        MouseButtonBindingMap* bbm;
+        MouseButtonBindingMap* bbm = 0;
 
         switch (op) {
         case Press:
@@ -317,7 +317,7 @@ Bindings::activate (MouseButton bb, Operation op)
 void
 Bindings::add (MouseButton bb, Operation op, RefPtr<Action> what)
 {
-        MouseButtonBindingMap* bbm;
+        MouseButtonBindingMap* bbm = 0;
 
         switch (op) {
         case Press:
@@ -342,7 +342,7 @@ Bindings::add (MouseButton bb, Operation op, RefPtr<Action> what)
 void
 Bindings::remove (MouseButton bb, Operation op)
 {
-        MouseButtonBindingMap* bbm;
+        MouseButtonBindingMap* bbm = 0;
 
         switch (op) {
         case Press:
index 5a7f4309ed5ac0118ec3d6d691131de0df0c1243..86dac26f2c1d43e159dae4e8b37eb11a99d68868 100644 (file)
@@ -232,13 +232,13 @@ CairoEditableText::on_scroll_event (GdkEventScroll* ev)
 }
 
 bool
-CairoEditableText::on_focus_in_event (GdkEventFocus* ev)
+CairoEditableText::on_focus_in_event (GdkEventFocus*)
 {
        return false;
 }
 
 bool
-CairoEditableText::on_focus_out_event (GdkEventFocus* ev)
+CairoEditableText::on_focus_out_event (GdkEventFocus*)
 {
        if (editing_cell) {
                queue_draw_cell (editing_cell);
index 694bfedd506bee096d5d12b49be01f7bb990d147..045db98a95732ca6f2ca01dfdcb0e8f513b9d9fb 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#include <sigc++/signal.h>
+#include <sigc++/slot.h>
+
+#include <string.h>
+#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h>
+#include <gtkmm2ext/gtkapplication.h>
+#include <gtkmm2ext/gtkapplication-private.h>
+
 #import <AppKit/NSMenu.h>
 #import <AppKit/NSMenuItem.h>
 #import <AppKit/NSCell.h>
 #import <Foundation/NSString.h>
 #import <Foundation/NSNotification.h>
 
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdkkeysyms.h>
-#include <gtkmm2ext/gtkapplication.h>
-#include <gtkmm2ext/gtkapplication-private.h>
-
 #define UNUSED_PARAMETER(a) (void) (a)
 
 // #define DEBUG(format, ...) g_printerr ("%s: " format, G_STRFUNC, ## __VA_ARGS__)
index dd16e36c09e391d0efacb8ee3a1791eccc2f0d21..8ab590fb54d23e2f1d42b7a3052e0912cf09e1ea 100644 (file)
@@ -34,13 +34,12 @@ void gtk_application_cleanup ()
 }
 
 void                      
-gtk_application_set_menu_bar       (GtkMenuShell    *menu_shell)
+gtk_application_set_menu_bar (GtkMenuShell* menushell)
 {
 }
 
 void                      
-gtk_application_add_app_menu_item   (GtkApplicationMenuGroup *group,
-                                    GtkMenuItem     *menu_item)
+gtk_application_add_app_menu_item (GtkApplicationMenuGroup* group, GtkMenuItem* item)
 {
 }
 
index dfa81cffe045e697b017a67234bf8fca88099496..c85641415044b967e442b05e1f55be44aa491512 100644 (file)
 #ifndef __gtkmm2ext_cell_renderer_pixbuf_multi_h__ 
 #define __gtkmm2ext_cell_renderer_pixbuf_multi_h__
 
-#ifdef GTKOSX
-#include <MacTypes.h>
-#if defined(Style)
-#undef style
-#endif
-#endif
-
 #include <map>
 #include <stdint.h>
 
index 4a1bbb9051f569489f286c12d2fd05a809d929f3..7bc5d806852504e655514d565cf2b9f70bc8c2e0 100644 (file)
 
 */
 
-#ifdef GTKOSX
-#include <MacTypes.h>
-#if defined(Style)
-#undef style
-#endif
-#endif
-
 #ifndef __gtkmm2ext_cell_renderer_pixbuf_toggle_h__ 
 #define __gtkmm2ext_cell_renderer_pixbuf_toggle_h__
 
index e0b1c6ea1338adcf0447c6dc6ba066a5d232bcec..649455e86b1032b57a0effaa918253dd730ab6d3 100644 (file)
@@ -283,7 +283,7 @@ private:
        }
 
        /* Draw the drag icon */
-       bool icon_expose (GdkEventExpose* ev)
+       bool icon_expose (GdkEventExpose*)
        {
                /* Just grab the child's widget and use that */
 
@@ -307,7 +307,7 @@ private:
        }
        
        void drag_data_received (
-               Glib::RefPtr<Gdk::DragContext> const & context, int x, int y, Gtk::SelectionData const & selection_data, guint /*info*/, guint time
+               Glib::RefPtr<Gdk::DragContext> const & context, int /*x*/, int y, Gtk::SelectionData const & selection_data, guint /*info*/, guint time
                )
        {
                /* work out where it was dropped */
@@ -374,7 +374,7 @@ private:
                }
        }
 
-       bool drag_motion (Glib::RefPtr<Gdk::DragContext> const &, int x, int y, guint)
+       bool drag_motion (Glib::RefPtr<Gdk::DragContext> const &, int /*x*/, int y, guint)
        {
                if (_children.empty ()) {
                        return false;
index 20380d5b0176fc971a3a40fe7e01a0dd50d915f7..10c97236963f0d192eb4a7c3f0ebd50a5f695ad2 100644 (file)
@@ -69,7 +69,7 @@ const char* Keyboard::primary_modifier_name() { return _("Command"); }
 const char* Keyboard::secondary_modifier_name() { return _("Option"); }
 const char* Keyboard::tertiary_modifier_name() { return _("Shift"); }
 const char* Keyboard::level4_modifier_name() { return _("Control"); }
-const char* Keyboard::copy_modifier_name() { return _("Mod1";    ); }
+const char* Keyboard::copy_modifier_name() { return _("Mod1"); }
 const char* Keyboard::rangeselect_modifier_name() { return _("Shift"); }
 
 #else
index c3152d7616297e251438b1ad35b2f7a1506fbd2f..6b85913d0c428f91270d5be6aedb4e3197460c36 100644 (file)
@@ -253,14 +253,14 @@ MotionFeedback::pixwin_motion_notify_event (GdkEventMotion *ev)
 }
 
 bool
-MotionFeedback::pixwin_enter_notify_event (GdkEventCrossing *ev
+MotionFeedback::pixwin_enter_notify_event (GdkEventCrossing*
 {
        pixwin.grab_focus();
        return false;
 }
 
 bool
-MotionFeedback::pixwin_leave_notify_event (GdkEventCrossing *ev
+MotionFeedback::pixwin_leave_notify_event (GdkEventCrossing*
 {
        pixwin.unset_flags (HAS_FOCUS);
        return false;
@@ -316,7 +316,7 @@ MotionFeedback::pixwin_key_press_event (GdkEventKey *ev)
 }
 
 bool
-MotionFeedback::pixwin_expose_event (GdkEventExpose* ev)
+MotionFeedback::pixwin_expose_event (GdkEventExpose*)
 {
        if (!_controllable) {
                return true;
index 0ed8a9d5f94b55f5e1dc6a85ecd2ca554364cb38..d509ff6796a6341c70261dd7e21372eec965759a 100644 (file)
@@ -25,8 +25,8 @@ using namespace Glib;
 using namespace Gtk;
 
 void
-Gtkmm2ext::treeview_select_one (RefPtr<TreeSelection> selection, RefPtr<TreeModel> model, TreeView& view,
-                                TreeIter iter, TreePath path, TreeViewColumn* col)
+Gtkmm2ext::treeview_select_one (RefPtr<TreeSelection> selection, RefPtr<TreeModel> /*model*/, TreeView& view,
+                                TreeIter /*iter*/, TreePath path, TreeViewColumn* col)
 {
         if (!view.row_expanded (path)) {
                 // cerr << "!! selecting a row that isn't expanded! " << path.to_string() << endl;
index da83cdcb41ad8d792890e4c4332a5f0b5e3bb291..9597de3928662773172c8b8284aca1eb39d1f02f 100644 (file)
@@ -220,8 +220,11 @@ inline static const char* midi_name(uint8_t status)
        case MIDI_CTL_POLY:
                return "Polyphonic Mode"; break;
        default:
-               return "Unnamed"; break;
+               break;
        }
+
+       return "Unnamed";
+       
 }
 
 #endif /* __midinames_h__ */
index d4a7030d9b3c7d129ea360035df551d8bf66c69a..59f8cddb62353c3395450bea4172b6e2c9c83541 100644 (file)
@@ -33,7 +33,7 @@ static PanPluginDescriptor _descriptor = {
 
 extern "C" { PanPluginDescriptor* panner_descriptor () { return &_descriptor; } }
 
-VBAPanner::Signal::Signal (Session& session, VBAPanner& p, uint32_t n, uint32_t n_speakers)
+VBAPanner::Signal::Signal (Session&, VBAPanner&, uint32_t, uint32_t n_speakers)
 {
         resize_gains (n_speakers);
 
@@ -363,9 +363,11 @@ VBAPanner::distribute_one (AudioBuffer& srcbuf, BufferSet& obufs, gain_t gain_co
 }
 
 void 
-VBAPanner::distribute_one_automated (AudioBuffer& src, BufferSet& obufs,
-                                     framepos_t start, framepos_t end, pframes_t nframes, pan_t** buffers, uint32_t which)
+VBAPanner::distribute_one_automated (AudioBuffer& /*src*/, BufferSet& /*obufs*/,
+                                     framepos_t /*start*/, framepos_t /*end*/, 
+                                    pframes_t /*nframes*/, pan_t** /*buffers*/, uint32_t /*which*/)
 {
+       /* XXX to be implemented */
 }
 
 XMLNode&
index 9d307f64af7ab3fdb9d7a36765f7390e3e1c9d18..3ddbc88e6d9e55cb7cb44e2160dd990d7eb7f74a 100644 (file)
@@ -328,35 +328,35 @@ boost_debug_list_ptrs ()
 
 namespace boost {
 
-void sp_scalar_constructor_hook( void * object, std::size_t size, void * pn )
+void sp_scalar_constructor_hook( void *, std::size_t, void *)
 {
 }
 
-void sp_scalar_destructor_hook( void * object, std::size_t size, void * pn )
+void sp_scalar_destructor_hook( void *, std::size_t, void *)
 {
 }
 
-void sp_counter_ref_hook (void* pn, long use_count)
+void sp_counter_ref_hook (void* /*pn*/, long /* use count */)
 {
 }
 
-void sp_counter_release_hook (void* pn, long use_count
+void sp_counter_release_hook (void* /*pn*/, long /*use_count*/
 {
 }
 
-void sp_array_constructor_hook(void * p)
+void sp_array_constructor_hook(void *)
 {
 }
 
-void sp_array_destructor_hook(void * p)
+void sp_array_destructor_hook(void *)
 {
 }
 
-void sp_scalar_constructor_hook(void * p)
+void sp_scalar_constructor_hook(void *)
 {
 }
 
-void sp_scalar_destructor_hook(void * p)
+void sp_scalar_destructor_hook(void *)
 {
 }
 
index 6ba1ad06cace64b46e80133c12f09f9f4e4e20dd..1abed021f906e378d4ed21ef463a9a645fb3d793 100644 (file)
@@ -100,12 +100,12 @@ double DetectionFunction::process( const double *TDomain )
     // data directly), we will have to use the next smallest power of
     // two from the block size.  Results may vary accordingly!
 
-    int actualLength = MathUtilities::previousPowerOfTwo(m_dataLength);
+    unsigned int actualLength = MathUtilities::previousPowerOfTwo(m_dataLength);
 
     if (actualLength != m_dataLength) {
         // Pre-fill mag and phase vectors with zero, as the FFT output
         // will not fill the arrays
-        for (int i = actualLength/2; i < m_dataLength/2; ++i) {
+        for (unsigned int i = actualLength/2; i < m_dataLength/2; ++i) {
             m_magnitude[i] = 0;
             m_thetaAngle[0] = 0;
         }
index 879ae8813c8f01d6a31f836c40a19ae83e634f78..55f56b46d0d3cd30be693a504dc211ed12e878d0 100644 (file)
@@ -80,7 +80,7 @@ void PeakPicking::process( double* src, unsigned int len, vector<int> &onsets )
        
     quadEval( m_maxima, onsets );
 
-    for( int b = 0; b <  m_maxima.size(); b++)
+    for(unsigned int b = 0; b <  m_maxima.size(); b++)
     {
        src[ b ] = m_maxima[ b ];
     }
@@ -131,11 +131,8 @@ int PeakPicking::quadEval( vector<double> &src, vector<int> &idx )
        p = TPolyFit::PolyFit2( m_err, m_maxFit, m_poly);
 
        double f = m_poly[0];
-       double g = m_poly[1];
        double h = m_poly[2];
 
-       int kk = m_poly.size();
-
        if (h < -Qfilta || f > Qfiltc)
        {
            idx.push_back(m_maxIndex[j]);
index bbe308b98517e2d6c7f7630d802bbd3dcea9b60f..15c6d3ce36d67caaeaef54703e2654e2ab3dcc0e 100644 (file)
@@ -180,7 +180,7 @@ void DFProcess::removeDCNormalize( double *src, double*dst )
 
     MathUtilities::getAlphaNorm( src, m_length, m_alphaNormParam, &DFAlphaNorm );
 
-    for( unsigned int i = 0; i< m_length; i++)
+    for(int i = 0; i< m_length; i++)
     {
        dst[ i ] = ( src[ i ] - DFMin ) / DFAlphaNorm; 
     }
index 764c84b24a2617c4a3c47d9784175defc7a3f110..504090528c4409eab5b8942665ea7f11b8c0d014 100644 (file)
@@ -77,7 +77,7 @@ Wavelet::createDecompositionFilters(Type wavelet,
     lpd.clear();
     hpd.clear();
 
-    int flength = 0;
+    unsigned int flength = 0;
        
     switch (wavelet) {
 
index 13ab9ce0e85512c51628ed41ee092adf7f8f53c0..fd2aeef3fe22bc584b47bb23b1d24c7277daa32b 100644 (file)
@@ -34,7 +34,7 @@ double CosineDistance::distance(const vector<double> &v1,
     }
     else
     {
-        for(int i=0; i<v1.size(); i++)
+        for(unsigned int i=0; i<v1.size(); i++)
         {
             dSum1 += v1[i]*v2[i];
             dDen1 += v1[i]*v1[i];
index 809874121e74273692ae8e72e910fead4e25ad98..70a275912cec1a63310776b85b481876ddc245a9 100644 (file)
@@ -155,7 +155,7 @@ double MathUtilities::mean(const std::vector<double> &src,
 {
     double sum = 0.;
        
-    for (int i = 0; i < count; ++i)
+    for (unsigned int i = 0; i < count; ++i)
     {
         sum += src[start + i];
     }
@@ -167,7 +167,6 @@ void MathUtilities::getFrameMinMax(const double *data, unsigned int len, double
 {
     unsigned int i;
     double temp = 0.0;
-    double a=0.0;
 
     if (len == 0) {
         *min = *max = 0;
@@ -317,9 +316,9 @@ void MathUtilities::normalise(std::vector<double> &data, NormaliseType type)
     case NormaliseUnitSum:
     {
         double sum = 0.0;
-        for (int i = 0; i < data.size(); ++i) sum += data[i];
+        for (unsigned int i = 0; i < data.size(); ++i) sum += data[i];
         if (sum != 0.0) {
-            for (int i = 0; i < data.size(); ++i) data[i] /= sum;
+            for (unsigned int i = 0; i < data.size(); ++i) data[i] /= sum;
         }
     }
     break;
@@ -327,11 +326,11 @@ void MathUtilities::normalise(std::vector<double> &data, NormaliseType type)
     case NormaliseUnitMax:
     {
         double max = 0.0;
-        for (int i = 0; i < data.size(); ++i) {
+        for (unsigned int i = 0; i < data.size(); ++i) {
             if (fabs(data[i]) > max) max = fabs(data[i]);
         }
         if (max != 0.0) {
-            for (int i = 0; i < data.size(); ++i) data[i] /= max;
+            for (unsigned int i = 0; i < data.size(); ++i) data[i] /= max;
         }
     }
     break;
index 86bb64cb1e76e2b7f11b8262cfdbb0bd5bfb3177..3fac62d1b27a7d21c6deef8f45e74738c96a6949 100644 (file)
@@ -105,13 +105,13 @@ double TPolyFit::PolyFit2 (const vector<double> &x,
 // nterms = coefs.size()
 // npoints = x.size()
 {
-    int i, j;
+    unsigned int i, j;
     double xi, yi, yc, srs, sum_y, sum_y2;
     Matrix xmatr;        // Data matrix
     Matrix a;
     vector<double> g;      // Constant vector
-    const int npoints(x.size());
-    const int nterms(coefs.size());
+    const unsigned int npoints(x.size());
+    const unsigned int nterms(coefs.size());
     double correl_coef;
     zeroise(g, nterms);
     zeroise(a, nterms, nterms);
@@ -278,7 +278,8 @@ bool TPolyFit::GaussJordan2(Matrix &b,
     double big, t;
     double pivot;
     double determ;
-    int irow, icol;
+    int irow = 0;
+    int icol = 0;
     int ncol(b.size());
     int nv = 1;                  // single constant vector
     for(int i = 0; i < ncol; ++i)
index 47bf77e197614c2b927fe0adf1c6471da0d08b39..3b832e09e155aaf76b489155c0b61b4526657c78 100644 (file)
@@ -200,6 +200,7 @@ RubberBandStretcher::Impl::processChunks(size_t c, bool &any, bool &last)
         if (!cd.draining) {
             size_t got = cd.inbuf->peek(cd.fltbuf, m_windowSize);
             assert(got == m_windowSize || cd.inputSize >= 0);
+            got = 0;
             cd.inbuf->skip(m_increment);
             analyseChunk(c);
         }
@@ -230,6 +231,7 @@ RubberBandStretcher::Impl::processOneChunk()
         ChannelData &cd = *m_channelData[c];
         if (!cd.draining) {
             size_t got = cd.inbuf->peek(cd.fltbuf, m_windowSize);
+            got = 0;
             assert(got == m_windowSize || cd.inputSize >= 0);
             cd.inbuf->skip(m_increment);
             analyseChunk(c);
index 426d730743edbc81753cd8f25dcd2961ac41822d..bae32010725c28248adac375142c7cc86ac071e2 100644 (file)
@@ -17,7 +17,6 @@
 
 */
 
-#define __STDC_FORMAT_MACROS 1
 #include <stdint.h>
 #include <cmath>
 #include <climits>
index 280959ae090580f87b3cc5e99787660181f967d2..a76943156c6e01079c5ec7541dd817d2233def98 100644 (file)
@@ -576,7 +576,7 @@ OSC::_catchall (const char *path, const char *types, lo_arg **argv, int argc, vo
 }
 
 int
-OSC::catchall (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg) 
+OSC::catchall (const char *path, const char* /*types*/, lo_arg **argv, int argc, lo_message msg) 
 {
        size_t len;
        int ret = 1; /* unhandled */
index 27c2e6ba03e5384dc9c4f12889deefce4b5ec245..4da22cf9e48c4fac1bb022ccb76e434311fea404 100644 (file)
@@ -124,7 +124,7 @@ class OSC : public ARDOUR::ControlProtocol, public AbstractUI<OSCUIRequest>
         static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { \
                return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, data); \
         } \
-        int cb_ ## name (const char *, const char *, lo_arg **argv, int argc, void *data) { \
+        int cb_ ## name (const char *, const char *, lo_arg **, int, void *data) { \
                name (data);            \
                return 0;               \
        }
@@ -188,7 +188,7 @@ class OSC : public ARDOUR::ControlProtocol, public AbstractUI<OSCUIRequest>
         static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { \
                return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, data); \
         } \
-        int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data) { \
+        int cb_ ## name (const char *, const char *, lo_arg **argv, int argc, void *data) { \
                 if (argc > 1) {                                                \
                  name (argv[0]->arg1type, argv[1]->arg2type,argv[2]->arg3type); \
                 }                                                      \
@@ -199,7 +199,7 @@ class OSC : public ARDOUR::ControlProtocol, public AbstractUI<OSCUIRequest>
         static int _ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) { \
                return static_cast<OSC*>(user_data)->cb_ ## name (path, types, argv, argc, data); \
         } \
-        int cb_ ## name (const char *path, const char *types, lo_arg **argv, int argc, void *data) { \
+        int cb_ ## name (const char *, const char *, lo_arg **argv, int argc, void *data) { \
                 if (argc > 1) {                                                \
                  name (argv[0]->arg1type, argv[1]->arg2type,argv[2]->arg3type,argv[3]->arg4type); \
                 }                                                      \
index cb4c2b41ccf0874971aaf496a2cb194bbb2cef2d..706ddbae0dd5088a0d1009df23a430277a610e45 100644 (file)
@@ -108,6 +108,7 @@ namespace TagLib {
                                bool readAudioProperties = true,
                                AudioProperties::ReadStyle
                                audioPropertiesStyle = AudioProperties::Average) const = 0;
+      virtual ~FileTypeResolver() {}
     };
 
     /*!
index 8dc60c3d23a7b25bbc9e7164c6f1b451c9892a03..a2372f87385c860f0ff6d973dfc21bb34e03a24c 100644 (file)
@@ -78,6 +78,7 @@ namespace TagLib {
        * ISO-8859-1.
        */
       virtual ByteVector render(const String &s) const;
+      virtual ~StringHandler() {}
     };
 
     //! The main class in the ID3v1 implementation
index 5a4593dde8709af12e54b4186b720c23f5601e92..c937ba67b71b543ef3d1592e55950d087c14f6cf 100644 (file)
@@ -588,7 +588,7 @@ PluginAdapterBase::Impl::vampGetRemainingFeatures(VampPluginHandle handle)
 }
 
 void
-PluginAdapterBase::Impl::vampReleaseFeatureSet(VampFeatureList *fs)
+PluginAdapterBase::Impl::vampReleaseFeatureSet(VampFeatureList *)
 {
 #ifdef DEBUG_PLUGIN_ADAPTER
     std::cerr << "PluginAdapterBase::Impl::vampReleaseFeatureSet" << std::endl;