Fix some unused parameter warnings.

git-svn-id: svn://localhost/ardour2/branches/3.0@5403 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-07-21 15:55:17 +00:00
parent f411496289
commit b65f8073ba
195 changed files with 574 additions and 518 deletions

View file

@ -405,7 +405,7 @@ AddRouteDialog::group_changed ()
}
bool
AddRouteDialog::channel_separator (const Glib::RefPtr<Gtk::TreeModel> &m, const Gtk::TreeModel::iterator &i)
AddRouteDialog::channel_separator (const Glib::RefPtr<Gtk::TreeModel> &, const Gtk::TreeModel::iterator &i)
{
channel_combo.set_active (i);
@ -413,7 +413,7 @@ AddRouteDialog::channel_separator (const Glib::RefPtr<Gtk::TreeModel> &m, const
}
bool
AddRouteDialog::route_separator (const Glib::RefPtr<Gtk::TreeModel> &m, const Gtk::TreeModel::iterator &i)
AddRouteDialog::route_separator (const Glib::RefPtr<Gtk::TreeModel> &, const Gtk::TreeModel::iterator &i)
{
route_group_combo.set_active (i);

View file

@ -198,7 +198,7 @@ AnalysisWindow::set_regionmode()
}
void
AnalysisWindow::track_list_row_changed(const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter)
AnalysisWindow::track_list_row_changed(const Gtk::TreeModel::Path& /*path*/, const Gtk::TreeModel::iterator& /*iter*/)
{
if (track_list_ready) {
fft_graph.redraw();
@ -235,7 +235,7 @@ AnalysisWindow::analyze()
}
void
AnalysisWindow::analyze_data (Gtk::Button *button)
AnalysisWindow::analyze_data (Gtk::Button */*button*/)
{
track_list_ready = false;
{

View file

@ -440,7 +440,7 @@ ARDOUR_UI::configure_timeout ()
}
gboolean
ARDOUR_UI::configure_handler (GdkEventConfigure* conf)
ARDOUR_UI::configure_handler (GdkEventConfigure* /*conf*/)
{
if (have_configure_timeout) {
last_configure_time = get_microseconds();
@ -995,7 +995,7 @@ ARDOUR_UI::update_wall_clock ()
}
gint
ARDOUR_UI::session_menu (GdkEventButton *ev)
ARDOUR_UI::session_menu (GdkEventButton */*ev*/)
{
session_popup_menu->popup (0, 0);
return TRUE;
@ -1114,7 +1114,7 @@ ARDOUR_UI::build_session_selector ()
}
void
ARDOUR_UI::recent_session_row_activated (const TreePath& path, TreeViewColumn* col)
ARDOUR_UI::recent_session_row_activated (const TreePath& /*path*/, TreeViewColumn* /*col*/)
{
session_selector_window->response (RESPONSE_ACCEPT);
}
@ -2210,7 +2210,7 @@ ARDOUR_UI::end_loading_messages ()
}
void
ARDOUR_UI::loading_message (const std::string& msg)
ARDOUR_UI::loading_message (const std::string& /*msg*/)
{
// show_splash ();
// splash->message (msg);
@ -2527,7 +2527,7 @@ ARDOUR_UI::hide_about ()
}
void
ARDOUR_UI::about_signal_response(int response)
ARDOUR_UI::about_signal_response (int /*response*/)
{
hide_about();
}
@ -3033,7 +3033,7 @@ quickly enough to keep up with playback.\n"));
}
void
ARDOUR_UI::disk_speed_dialog_gone (int ignored_response, MessageDialog* msg)
ARDOUR_UI::disk_speed_dialog_gone (int /*ignored_response*/, MessageDialog* msg)
{
have_disk_speed_dialog_displayed = false;
delete msg;

View file

@ -123,7 +123,7 @@ ARDOUR_UI::toggle_editor_mixer_on_top ()
}
gint
ARDOUR_UI::exit_on_main_window_close (GdkEventAny *ev)
ARDOUR_UI::exit_on_main_window_close (GdkEventAny * /*ev*/)
{
#ifdef TOP_MENUBAR
/* just hide the window, and return - the top menu stays up */

View file

@ -393,7 +393,7 @@ ARDOUR_UI::toggle_route_params_window ()
}
void
ARDOUR_UI::handle_locations_change (Location* ignored)
ARDOUR_UI::handle_locations_change (Location *)
{
if (session) {
if (session->locations()->num_range_markers()) {

View file

@ -395,7 +395,7 @@ AudioClock::setup_events ()
}
bool
AudioClock::drop_focus_handler (GdkEventFocus* ignored)
AudioClock::drop_focus_handler (GdkEventFocus*)
{
Keyboard::magic_widget_drop_focus ();
return false;
@ -490,7 +490,7 @@ AudioClock::smpte_offset_changed ()
}
void
AudioClock::set_frames (nframes_t when, bool force)
AudioClock::set_frames (nframes_t when, bool /*force*/)
{
char buf[32];
snprintf (buf, sizeof (buf), "%u", when);
@ -735,7 +735,7 @@ AudioClock::focus ()
bool
AudioClock::field_key_press_event (GdkEventKey *ev, Field field)
AudioClock::field_key_press_event (GdkEventKey */*ev*/, Field /*field*/)
{
/* all key activity is handled on key release */
return true;
@ -987,7 +987,7 @@ AudioClock::field_key_release_event (GdkEventKey *ev, Field field)
}
bool
AudioClock::field_focus_in_event (GdkEventFocus *ev, Field field)
AudioClock::field_focus_in_event (GdkEventFocus */*ev*/, Field field)
{
key_entry_state = 0;
@ -1046,7 +1046,7 @@ AudioClock::field_focus_in_event (GdkEventFocus *ev, Field field)
}
bool
AudioClock::field_focus_out_event (GdkEventFocus *ev, Field field)
AudioClock::field_focus_out_event (GdkEventFocus */*ev*/, Field field)
{
switch (field) {
@ -1182,9 +1182,11 @@ AudioClock::field_button_release_event (GdkEventButton *ev, Field field)
}
bool
AudioClock::field_button_press_event (GdkEventButton *ev, Field field)
AudioClock::field_button_press_event (GdkEventButton *ev, Field /*field*/)
{
if (session == 0) return false;
if (session == 0) {
return false;
}
nframes_t frames = 0;

View file

@ -172,7 +172,7 @@ AudioRegionEditor::region_changed (Change what_changed)
}
gint
AudioRegionEditor::bpressed (GdkEventButton* ev, Gtk::SpinButton* but, void (AudioRegionEditor::*pmf)())
AudioRegionEditor::bpressed (GdkEventButton* ev, Gtk::SpinButton* /*but*/, void (AudioRegionEditor::*/*pmf*/)())
{
switch (ev->button) {
case 1:
@ -195,7 +195,7 @@ AudioRegionEditor::bpressed (GdkEventButton* ev, Gtk::SpinButton* but, void (Aud
}
gint
AudioRegionEditor::breleased (GdkEventButton* ev, Gtk::SpinButton* but, void (AudioRegionEditor::*pmf)())
AudioRegionEditor::breleased (GdkEventButton* /*ev*/, Gtk::SpinButton* /*but*/, void (AudioRegionEditor::*pmf)())
{
if (spin_arrow_grab) {
(this->*pmf)();

View file

@ -881,7 +881,7 @@ AudioRegionView::create_waves ()
}
void
AudioRegionView::create_one_wave (uint32_t which, bool direct)
AudioRegionView::create_one_wave (uint32_t which, bool /*direct*/)
{
//cerr << "AudioRegionView::create_one_wave() called which: " << which << " this: " << this << endl;//DEBUG
RouteTimeAxisView& atv (*(dynamic_cast<RouteTimeAxisView*>(&trackview))); // ick
@ -1030,7 +1030,7 @@ AudioRegionView::add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *ev)
}
void
AudioRegionView::remove_gain_point_event (ArdourCanvas::Item *item, GdkEvent *ev)
AudioRegionView::remove_gain_point_event (ArdourCanvas::Item *item, GdkEvent */*ev*/)
{
ControlPoint *cp = reinterpret_cast<ControlPoint *> (item->get_data ("control_point"));
audio_region()->envelope()->erase (cp->model());

View file

@ -1037,7 +1037,7 @@ AutomationLine::get_selectables (nframes_t& start, nframes_t& end,
}
void
AutomationLine::get_inverted_selectables (Selection&, list<Selectable*>& results)
AutomationLine::get_inverted_selectables (Selection&, list<Selectable*>& /*results*/)
{
// hmmm ....
}
@ -1198,7 +1198,7 @@ AutomationLine::clear ()
}
void
AutomationLine::change_model (AutomationList::iterator i, double x, double y)
AutomationLine::change_model (AutomationList::iterator /*i*/, double /*x*/, double /*y*/)
{
}

View file

@ -46,7 +46,7 @@ AutomationRegionView::AutomationRegionView(ArdourCanvas::Group*
}
void
AutomationRegionView::init (Gdk::Color const & basic_color, bool wfd)
AutomationRegionView::init (Gdk::Color const & basic_color, bool /*wfd*/)
{
_enable_display = false;
@ -92,7 +92,7 @@ AutomationRegionView::canvas_event(GdkEvent* ev)
}
void
AutomationRegionView::add_automation_event (GdkEvent* event, nframes_t when, double y)
AutomationRegionView::add_automation_event (GdkEvent* /*event*/, nframes_t when, double y)
{
if (!_line) {
boost::shared_ptr<Evoral::Control> c = _region->control(_parameter, true);

View file

@ -70,7 +70,7 @@ AutomationStreamView::~AutomationStreamView ()
RegionView*
AutomationStreamView::add_region_view_internal (boost::shared_ptr<Region> region, bool wfd, bool recording)
AutomationStreamView::add_region_view_internal (boost::shared_ptr<Region> region, bool wfd, bool /*recording*/)
{
if ( ! region) {
cerr << "No region" << endl;
@ -182,7 +182,7 @@ AutomationStreamView::setup_rec_box ()
}
void
AutomationStreamView::update_rec_regions (nframes_t start, nframes_t dur)
AutomationStreamView::update_rec_regions (nframes_t /*start*/, nframes_t /*dur*/)
{
}

View file

@ -564,7 +564,7 @@ AutomationTimeAxisView::build_display_menu ()
}
void
AutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* item, GdkEvent* event, nframes_t when, double y)
AutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* /*item*/, GdkEvent* /*event*/, nframes_t when, double y)
{
if (!_line)
return;

View file

@ -80,7 +80,7 @@ class AutomationTimeAxisView : public TimeAxisView {
void get_selectables (nframes_t start, nframes_t end, double top, double bot, std::list<Selectable *>&);
void get_inverted_selectables (Selection&, std::list<Selectable*>& results);
void show_timestretch (nframes_t start, nframes_t end) {}
void show_timestretch (nframes_t /*start*/, nframes_t /*end*/) {}
void hide_timestretch () {}
/* editing operations */

View file

@ -161,7 +161,7 @@ BundleEditorMatrix::list_is_global (int dim) const
return (dim == OTHER);
}
BundleEditor::BundleEditor (Session& session, boost::shared_ptr<UserBundle> bundle, bool add)
BundleEditor::BundleEditor (Session& session, boost::shared_ptr<UserBundle> bundle, bool /*add*/)
: ArdourDialog (_("Edit Bundle")), _matrix (session, bundle), _bundle (bundle)
{
Gtk::Table* t = new Gtk::Table (3, 2);

View file

@ -45,7 +45,7 @@ CanvasFlag::~CanvasFlag()
}
bool
CanvasFlag::on_event(GdkEvent* ev)
CanvasFlag::on_event(GdkEvent* /*ev*/)
{
return false;
}

View file

@ -245,6 +245,8 @@ gnome_canvas_simpleline_set_property (GObject *object,
GParamSpec *pspec)
{
(void) pspec;
GnomeCanvasSimpleLine *simpleline;
int update = FALSE;
int bounds_changed = FALSE;
@ -465,6 +467,9 @@ gnome_canvas_simpleline_bounds (GnomeCanvasItem *item, double *x1, double *y1, d
static double
gnome_canvas_simpleline_point (GnomeCanvasItem *item, double x, double y, int cx, int cy, GnomeCanvasItem **actual_item)
{
(void) cx;
(void) cy;
GnomeCanvasSimpleLine *simpleline;
double x1, y1, x2, y2;
double dx, dy;

View file

@ -370,6 +370,8 @@ gnome_canvas_simplerect_set_property (GObject *object,
GParamSpec *pspec)
{
(void) pspec;
GnomeCanvasSimpleRect *simplerect;
int update = FALSE;
int bounds_changed = FALSE;
@ -825,6 +827,9 @@ gnome_canvas_simplerect_draw (GnomeCanvasItem *item,
static double
gnome_canvas_simplerect_point (GnomeCanvasItem *item, double x, double y, int cx, int cy, GnomeCanvasItem **actual_item)
{
(void) cx;
(void) cy;
GnomeCanvasSimpleRect *simplerect;
double x1, y1, x2, y2;
double dx, dy;

View file

@ -738,6 +738,8 @@ gnome_canvas_waveview_set_property (GObject *object,
GParamSpec *pspec)
{
(void) pspec;
GnomeCanvasItem *item;
GnomeCanvasWaveView *waveview;
int redraw = FALSE;
@ -1861,6 +1863,13 @@ gnome_canvas_waveview_bounds (GnomeCanvasItem *item, double *x1, double *y1, dou
static double
gnome_canvas_waveview_point (GnomeCanvasItem *item, double x, double y, int cx, int cy, GnomeCanvasItem **actual_item)
{
(void) item;
(void) x;
(void) y;
(void) cx;
(void) cy;
(void) actual_item;
/* XXX for now, point is never inside the wave
GnomeCanvasWaveView *waveview;
double x1, y1, x2, y2;

View file

@ -56,7 +56,7 @@ ControlPoint::ControlPoint (AutomationLine& al)
set_visible (false);
}
ControlPoint::ControlPoint (const ControlPoint& other, bool dummy_arg_to_force_special_copy_constructor)
ControlPoint::ControlPoint (const ControlPoint& other, bool /*dummy_arg_to_force_special_copy_constructor*/)
: _line (other._line)
{
if (&other == this) {

View file

@ -510,7 +510,7 @@ CrossfadeEditor::Point::move_to (double nx, double ny, double xfract, double yfr
}
void
CrossfadeEditor::canvas_allocation (Gtk::Allocation& alloc)
CrossfadeEditor::canvas_allocation (Gtk::Allocation& /*alloc*/)
{
if (toplevel) {
toplevel->property_x1() = 0.0;
@ -622,7 +622,7 @@ CrossfadeEditor::canvas_allocation (Gtk::Allocation& alloc)
void
CrossfadeEditor::xfade_changed (Change ignored)
CrossfadeEditor::xfade_changed (Change)
{
set (xfade->fade_in(), In);
set (xfade->fade_out(), Out);
@ -1355,7 +1355,7 @@ CrossfadeEditor::audition_left_dry_toggled ()
}
bool
CrossfadeEditor::on_key_press_event (GdkEventKey *ev)
CrossfadeEditor::on_key_press_event (GdkEventKey */*ev*/)
{
return true;
}

View file

@ -911,7 +911,7 @@ Editor::control_scroll (float fraction)
}
bool
Editor::deferred_control_scroll (nframes64_t target)
Editor::deferred_control_scroll (nframes64_t /*target*/)
{
session->request_locate (*_control_scroll_target, session->transport_rolling());
// reset for next stream
@ -1468,7 +1468,7 @@ Editor::popup_track_context_menu (int button, int32_t time, ItemType item_type,
}
Menu*
Editor::build_track_context_menu (nframes64_t ignored)
Editor::build_track_context_menu (nframes64_t)
{
using namespace Menu_Helpers;
@ -1480,7 +1480,7 @@ Editor::build_track_context_menu (nframes64_t ignored)
}
Menu*
Editor::build_track_bus_context_menu (nframes64_t ignored)
Editor::build_track_bus_context_menu (nframes64_t)
{
using namespace Menu_Helpers;
@ -1612,7 +1612,7 @@ Editor::analyze_range_selection()
}
Menu*
Editor::build_track_selection_context_menu (nframes64_t ignored)
Editor::build_track_selection_context_menu (nframes64_t)
{
using namespace Menu_Helpers;
MenuList& edit_items = track_selection_context_menu.items();
@ -1629,7 +1629,7 @@ Editor::build_track_selection_context_menu (nframes64_t ignored)
* @param edit_items List to add the items to.
*/
void
Editor::add_crossfade_context_items (AudioStreamView* view, boost::shared_ptr<Crossfade> xfade, Menu_Helpers::MenuList& edit_items, bool many)
Editor::add_crossfade_context_items (AudioStreamView* /*view*/, boost::shared_ptr<Crossfade> xfade, Menu_Helpers::MenuList& edit_items, bool many)
{
using namespace Menu_Helpers;
Menu *xfade_menu = manage (new Menu);
@ -3132,12 +3132,12 @@ Editor::setup_midi_toolbar ()
int
Editor::convert_drop_to_paths (
vector<ustring>& paths,
const RefPtr<Gdk::DragContext>& context,
gint x,
gint y,
const RefPtr<Gdk::DragContext>& /*context*/,
gint /*x*/,
gint /*y*/,
const SelectionData& data,
guint info,
guint time)
guint /*info*/,
guint /*time*/)
{
if (session == 0) {
return -1;
@ -3806,7 +3806,7 @@ Editor::pane_allocation_handler (Allocation &alloc, Paned* which)
}
void
Editor::detach_tearoff (Box* b, Window* w)
Editor::detach_tearoff (Box* /*b*/, Window* /*w*/)
{
if (tools_tearoff->torn_off() &&
mouse_mode_tearoff->torn_off()) {
@ -3815,7 +3815,7 @@ Editor::detach_tearoff (Box* b, Window* w)
}
void
Editor::reattach_tearoff (Box* b, Window* w, int32_t n)
Editor::reattach_tearoff (Box* /*b*/, Window* /*w*/, int32_t /*n*/)
{
if (toolbar_frame.get_parent() == 0) {
top_hbox.pack_end (toolbar_frame);
@ -4143,7 +4143,7 @@ Editor::mapped_use_copy_playlist (RouteTimeAxisView& atv, uint32_t sz, vector<bo
}
void
Editor::mapped_clear_playlist (RouteTimeAxisView& atv, uint32_t sz)
Editor::mapped_clear_playlist (RouteTimeAxisView& atv, uint32_t /*sz*/)
{
atv.clear_playlist ();
}
@ -4983,7 +4983,7 @@ Editor::remove_route (TimeAxisView *tv)
}
void
Editor::hide_track_in_display (TimeAxisView& tv, bool temponly)
Editor::hide_track_in_display (TimeAxisView& tv, bool /*temponly*/)
{
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (&tv);

View file

@ -712,7 +712,7 @@ Editor::embed_sndfiles (vector<Glib::ustring> paths, bool multifile,
int
Editor::add_sources (vector<Glib::ustring> paths, SourceList& sources, nframes64_t& pos, ImportMode mode,
int target_regions, int target_tracks, boost::shared_ptr<Track>& track, bool add_channel_suffix)
int target_regions, int target_tracks, boost::shared_ptr<Track>& track, bool /*add_channel_suffix*/)
{
vector<boost::shared_ptr<Region> > regions;
ustring region_name;
@ -903,7 +903,7 @@ Editor::import_thread ()
}
gint
Editor::import_progress_timeout (void *arg)
Editor::import_progress_timeout (void */*arg*/)
{
bool reset = false;

View file

@ -430,7 +430,7 @@ Editor::controls_layout_size_request (Requisition* req)
}
bool
Editor::track_canvas_map_handler (GdkEventAny* ev)
Editor::track_canvas_map_handler (GdkEventAny* /*ev*/)
{
track_canvas->get_window()->set_cursor (*current_canvas_cursor);
return false;
@ -534,10 +534,10 @@ Editor::drop_paths (const RefPtr<Gdk::DragContext>& context,
}
void
Editor::drop_regions (const RefPtr<Gdk::DragContext>& context,
int x, int y,
const SelectionData& data,
guint info, guint time)
Editor::drop_regions (const RefPtr<Gdk::DragContext>& /*context*/,
int /*x*/, int /*y*/,
const SelectionData& /*data*/,
guint /*info*/, guint /*time*/)
{
assert (_drag);
_drag->end_grab (0);
@ -754,7 +754,7 @@ Editor::stop_canvas_autoscroll ()
}
bool
Editor::left_track_canvas (GdkEventCrossing *ev)
Editor::left_track_canvas (GdkEventCrossing */*ev*/)
{
set_entered_track (0);
set_entered_regionview (0);
@ -763,7 +763,7 @@ Editor::left_track_canvas (GdkEventCrossing *ev)
}
bool
Editor::entered_track_canvas (GdkEventCrossing *ev)
Editor::entered_track_canvas (GdkEventCrossing */*ev*/)
{
reset_canvas_action_sensitivity (true);
return FALSE;

View file

@ -184,7 +184,7 @@ Editor::track_canvas_scroll_event (GdkEventScroll *event)
}
bool
Editor::track_canvas_button_press_event (GdkEventButton *event)
Editor::track_canvas_button_press_event (GdkEventButton */*event*/)
{
selection->clear ();
track_canvas->grab_focus();
@ -203,7 +203,7 @@ Editor::track_canvas_button_release_event (GdkEventButton *event)
}
bool
Editor::track_canvas_motion_notify_event (GdkEventMotion *event)
Editor::track_canvas_motion_notify_event (GdkEventMotion */*event*/)
{
int x, y;
/* keep those motion events coming */
@ -835,7 +835,7 @@ Editor::canvas_region_view_name_event (GdkEvent *event, ArdourCanvas::Item* item
}
bool
Editor::canvas_marker_event (GdkEvent *event, ArdourCanvas::Item* item, Marker* marker)
Editor::canvas_marker_event (GdkEvent *event, ArdourCanvas::Item* item, Marker* /*marker*/)
{
return typed_event (item, event, MarkerItem);
}
@ -865,13 +865,13 @@ Editor::canvas_cd_marker_bar_event (GdkEvent *event, ArdourCanvas::Item* item)
}
bool
Editor::canvas_tempo_marker_event (GdkEvent *event, ArdourCanvas::Item* item, TempoMarker* marker)
Editor::canvas_tempo_marker_event (GdkEvent *event, ArdourCanvas::Item* item, TempoMarker* /*marker*/)
{
return typed_event (item, event, TempoMarkerItem);
}
bool
Editor::canvas_meter_marker_event (GdkEvent *event, ArdourCanvas::Item* item, MeterMarker* marker)
Editor::canvas_meter_marker_event (GdkEvent *event, ArdourCanvas::Item* item, MeterMarker* /*marker*/)
{
return typed_event (item, event, MeterMarkerItem);
}
@ -901,7 +901,7 @@ Editor::canvas_zoom_rect_event (GdkEvent *event, ArdourCanvas::Item* item)
}
bool
Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const & c, int x, int y, guint time)
Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const & /*c*/, int x, int y, guint /*time*/)
{
double wx;
double wy;

View file

@ -720,7 +720,7 @@ RegionMoveDrag::motion (GdkEvent* event, bool first_move)
}
void
RegionMoveDrag::finished (GdkEvent* event, bool movement_occurred)
RegionMoveDrag::finished (GdkEvent* /*event*/, bool movement_occurred)
{
bool nocommit = true;
vector<RegionView*> copies;
@ -1243,7 +1243,7 @@ RegionMotionDrag::find_time_axis_views ()
void
RegionInsertDrag::finished (GdkEvent* event, bool movement_occurred)
RegionInsertDrag::finished (GdkEvent* /*event*/, bool /*movement_occurred*/)
{
_editor->update_canvas_now ();
@ -1280,7 +1280,7 @@ struct RegionSelectionByPosition {
};
void
RegionSpliceDrag::motion (GdkEvent* event, bool)
RegionSpliceDrag::motion (GdkEvent* /*event*/, bool)
{
RouteTimeAxisView* tv;
layer_t layer;
@ -1338,7 +1338,7 @@ RegionSpliceDrag::motion (GdkEvent* event, bool)
}
void
RegionSpliceDrag::finished (GdkEvent* event, bool)
RegionSpliceDrag::finished (GdkEvent* /*event*/, bool)
{
}
@ -1361,7 +1361,7 @@ RegionCreateDrag::start_grab (GdkEvent* event, Gdk::Cursor *)
void
RegionCreateDrag::motion (GdkEvent* event, bool first_move)
RegionCreateDrag::motion (GdkEvent* /*event*/, bool first_move)
{
if (first_move) {
// TODO: create region-create-drag region view here
@ -1415,7 +1415,7 @@ RegionCreateDrag::finished (GdkEvent* event, bool movement_occurred)
void
RegionGainDrag::motion (GdkEvent* event, bool)
RegionGainDrag::motion (GdkEvent* /*event*/, bool)
{
}
@ -2434,7 +2434,7 @@ ControlPointDrag::ControlPointDrag (Editor* e, ArdourCanvas::Item* i)
void
ControlPointDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor)
ControlPointDrag::start_grab (GdkEvent* event, Gdk::Cursor* /*cursor*/)
{
Drag::start_grab (event, _editor->fader_cursor);
@ -2552,7 +2552,7 @@ LineDrag::LineDrag (Editor* e, ArdourCanvas::Item* i)
}
void
LineDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor)
LineDrag::start_grab (GdkEvent* event, Gdk::Cursor* /*cursor*/)
{
_line = reinterpret_cast<AutomationLine*> (_item->get_data ("line"));
assert (_line);
@ -2771,7 +2771,7 @@ TimeFXDrag::motion (GdkEvent* event, bool)
}
void
TimeFXDrag::finished (GdkEvent* event, bool movement_occurred)
TimeFXDrag::finished (GdkEvent* /*event*/, bool movement_occurred)
{
_primary->get_time_axis_view().hide_timestretch ();
@ -2814,13 +2814,13 @@ ScrubDrag::start_grab (GdkEvent* event, Gdk::Cursor *)
}
void
ScrubDrag::motion (GdkEvent* event, bool)
ScrubDrag::motion (GdkEvent* /*event*/, bool)
{
_editor->scrub ();
}
void
ScrubDrag::finished (GdkEvent* event, bool movement_occurred)
ScrubDrag::finished (GdkEvent* /*event*/, bool movement_occurred)
{
if (movement_occurred && _editor->session) {
/* make sure we stop */

View file

@ -26,19 +26,19 @@ using namespace ARDOUR;
using namespace PBD;
void
Editor::hscrollbar_allocate (Gtk::Allocation &alloc)
Editor::hscrollbar_allocate (Gtk::Allocation &)
{
}
bool
Editor::hscrollbar_button_press (GdkEventButton *ev)
Editor::hscrollbar_button_press (GdkEventButton *)
{
_dragging_hscrollbar = true;
return false;
}
bool
Editor::hscrollbar_button_release (GdkEventButton *ev)
Editor::hscrollbar_button_release (GdkEventButton *)
{
_dragging_hscrollbar = false;

View file

@ -99,7 +99,7 @@ Editor::keyboard_insert_region_list_selection ()
}
int
Editor::get_prefix (float& val, bool& was_floating)
Editor::get_prefix (float& /*val*/, bool& was_floating)
{
was_floating = false;
return 1;

View file

@ -421,7 +421,7 @@ Editor::mouse_add_new_marker (nframes64_t where, bool is_cd, bool is_xrun)
}
void
Editor::remove_marker (ArdourCanvas::Item& item, GdkEvent* event)
Editor::remove_marker (ArdourCanvas::Item& item, GdkEvent*)
{
Marker* marker;
bool is_start;
@ -552,7 +552,7 @@ Editor::marker_context_menu (GdkEventButton* ev, ArdourCanvas::Item* item)
}
void
Editor::new_transport_marker_context_menu (GdkEventButton* ev, ArdourCanvas::Item* item)
Editor::new_transport_marker_context_menu (GdkEventButton* ev, ArdourCanvas::Item*)
{
if (new_transport_marker_menu == 0) {
build_new_transport_marker_menu ();
@ -563,7 +563,7 @@ Editor::new_transport_marker_context_menu (GdkEventButton* ev, ArdourCanvas::Ite
}
void
Editor::transport_marker_context_menu (GdkEventButton* ev, ArdourCanvas::Item* item)
Editor::transport_marker_context_menu (GdkEventButton* ev, ArdourCanvas::Item*)
{
if (transport_marker_menu == 0) {
build_range_marker_menu (true);

View file

@ -508,7 +508,7 @@ Editor::set_midi_edit_mode (MidiEditMode m, bool force)
}
void
Editor::set_midi_edit_cursor (MidiEditMode m)
Editor::set_midi_edit_cursor (MidiEditMode)
{
switch (midi_edit_mode) {
case MidiEditPencil:
@ -530,7 +530,7 @@ Editor::set_midi_edit_cursor (MidiEditMode m)
}
void
Editor::button_selection (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_type)
Editor::button_selection (ArdourCanvas::Item* /*item*/, GdkEvent* event, ItemType item_type)
{
/* in object/audition/timefx/gain-automation mode,
any button press sets the selection if the object
@ -1450,7 +1450,7 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT
}
bool
Editor::enter_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_type)
Editor::enter_handler (ArdourCanvas::Item* item, GdkEvent* /*event*/, ItemType item_type)
{
ControlPoint* cp;
Marker * marker;
@ -1646,7 +1646,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* /*event*/, ItemType item_type)
{
AutomationLine* al;
ControlPoint* cp;
@ -1856,7 +1856,7 @@ Editor::scrub ()
}
bool
Editor::motion_handler (ArdourCanvas::Item* item, GdkEvent* event, bool from_autoscroll)
Editor::motion_handler (ArdourCanvas::Item* /*item*/, GdkEvent* event, bool from_autoscroll)
{
if (event->motion.is_hint) {
gint x, y;
@ -1898,7 +1898,7 @@ Editor::motion_handler (ArdourCanvas::Item* item, GdkEvent* event, bool from_aut
}
void
Editor::remove_gain_control_point (ArdourCanvas::Item*item, GdkEvent* event)
Editor::remove_gain_control_point (ArdourCanvas::Item*item, GdkEvent* /*event*/)
{
ControlPoint* control_point;
@ -1917,7 +1917,7 @@ Editor::remove_gain_control_point (ArdourCanvas::Item*item, GdkEvent* event)
}
void
Editor::remove_control_point (ArdourCanvas::Item* item, GdkEvent* event)
Editor::remove_control_point (ArdourCanvas::Item* item, GdkEvent* /*event*/)
{
ControlPoint* control_point;
@ -2433,7 +2433,7 @@ Editor::thaw_region_after_trim (RegionView& rv)
}
void
Editor::hide_marker (ArdourCanvas::Item* item, GdkEvent* event)
Editor::hide_marker (ArdourCanvas::Item* item, GdkEvent* /*event*/)
{
Marker* marker;
bool is_start;
@ -2463,7 +2463,7 @@ Editor::reposition_zoom_rect (nframes64_t start, nframes64_t end)
gint
Editor::mouse_rename_region (ArdourCanvas::Item* item, GdkEvent* event)
Editor::mouse_rename_region (ArdourCanvas::Item* /*item*/, GdkEvent* /*event*/)
{
using namespace Gtkmm2ext;
@ -2601,7 +2601,7 @@ Editor::start_region_brush_grab (ArdourCanvas::Item* item, GdkEvent* event, Regi
* the section of the clicked region that lies within the time range.
*/
void
Editor::start_selection_grab (ArdourCanvas::Item* item, GdkEvent* event)
Editor::start_selection_grab (ArdourCanvas::Item* /*item*/, GdkEvent* event)
{
if (clicked_regionview == 0) {
return;

View file

@ -198,7 +198,7 @@ Editor::split_regions_at (nframes64_t where, RegionSelection& regions)
}
boost::shared_ptr<Region>
Editor::select_region_for_operation (int dir, TimeAxisView **tv)
Editor::select_region_for_operation (int /*dir*/, TimeAxisView **tv)
{
RegionView* rv;
boost::shared_ptr<Region> region;
@ -1800,7 +1800,7 @@ Editor::temporal_zoom_session ()
}
void
Editor::temporal_zoom_by_frame (nframes64_t start, nframes64_t end, const string & op)
Editor::temporal_zoom_by_frame (nframes64_t start, nframes64_t end, const string & /*op*/)
{
if (!session) return;
@ -3684,7 +3684,7 @@ Editor::freeze_thread ()
}
gint
Editor::freeze_progress_timeout (void *arg)
Editor::freeze_progress_timeout (void */*arg*/)
{
interthread_progress_bar.set_fraction (current_interthread_info->progress);
return !(current_interthread_info->done || current_interthread_info->cancel);

View file

@ -904,7 +904,7 @@ EditorRegions::show_context_menu (int button, int time)
}
bool
EditorRegions::key_press (GdkEventKey* ev)
EditorRegions::key_press (GdkEventKey* /*ev*/)
{
return false;
}
@ -1145,7 +1145,7 @@ EditorRegions::drag_data_received (const RefPtr<Gdk::DragContext>& context,
}
bool
EditorRegions::selection_filter (const RefPtr<TreeModel>& model, const TreeModel::Path& path, bool yn)
EditorRegions::selection_filter (const RefPtr<TreeModel>& model, const TreeModel::Path& path, bool /*yn*/)
{
/* not possible to select rows that do not represent regions, like "Hidden" */

View file

@ -502,7 +502,7 @@ EditorRouteGroups::button_press_event (GdkEventButton* ev)
}
void
EditorRouteGroups::row_change (const Gtk::TreeModel::Path& path,const Gtk::TreeModel::iterator& iter)
EditorRouteGroups::row_change (const Gtk::TreeModel::Path&, const Gtk::TreeModel::iterator& iter)
{
RouteGroup* group;

View file

@ -229,7 +229,7 @@ EditorRoutes::redisplay ()
}
void
EditorRoutes::route_deleted (Gtk::TreeModel::Path const & path)
EditorRoutes::route_deleted (Gtk::TreeModel::Path const &)
{
/* this could require an order reset & sync */
_session->set_remote_control_ids();
@ -240,7 +240,7 @@ EditorRoutes::route_deleted (Gtk::TreeModel::Path const & path)
void
EditorRoutes::changed (Gtk::TreeModel::Path const & path, Gtk::TreeModel::iterator const & iter)
EditorRoutes::changed (Gtk::TreeModel::Path const &, Gtk::TreeModel::iterator const &)
{
/* never reset order keys because of a property change */
_redisplay_does_not_reset_order_keys = true;
@ -401,7 +401,7 @@ EditorRoutes::show_track_in_display (TimeAxisView& tv)
}
void
EditorRoutes::reordered (TreeModel::Path const & path, TreeModel::iterator const & iter, int* what)
EditorRoutes::reordered (TreeModel::Path const &, TreeModel::iterator const &, int* /*what*/)
{
redisplay ();
}
@ -449,7 +449,7 @@ EditorRoutes::sync_order_keys (string const & src)
void
EditorRoutes::hide_all_tracks (bool with_select)
EditorRoutes::hide_all_tracks (bool /*with_select*/)
{
TreeModel::Children rows = _model->children();
TreeModel::Children::iterator i;
@ -674,7 +674,7 @@ EditorRoutes::initial_display ()
}
void
EditorRoutes::track_list_reorder (Gtk::TreeModel::Path const & path, Gtk::TreeModel::iterator const & iter, int* new_order)
EditorRoutes::track_list_reorder (Gtk::TreeModel::Path const &, Gtk::TreeModel::iterator const &, int* /*new_order*/)
{
_redisplay_does_not_sync_order_keys = true;
_session->set_remote_control_ids();

View file

@ -977,7 +977,7 @@ Editor::set_smpte_ruler_scale (gdouble lower, gdouble upper)
}
gint
Editor::metric_get_smpte (GtkCustomRulerMark **marks, gdouble lower, gdouble upper, gint maxchars)
Editor::metric_get_smpte (GtkCustomRulerMark **marks, gdouble lower, gdouble /*upper*/, gint /*maxchars*/)
{
nframes_t pos;
nframes64_t spacer;
@ -1220,7 +1220,7 @@ Editor::compute_bbt_ruler_scale (nframes64_t lower, nframes64_t upper)
}
gint
Editor::metric_get_bbt (GtkCustomRulerMark **marks, gdouble lower, gdouble upper, gint maxchars)
Editor::metric_get_bbt (GtkCustomRulerMark **marks, gdouble lower, gdouble /*upper*/, gint /*maxchars*/)
{
if (session == 0) {
return 0;
@ -1692,7 +1692,7 @@ Editor::metric_get_bbt (GtkCustomRulerMark **marks, gdouble lower, gdouble upper
}
gint
Editor::metric_get_frames (GtkCustomRulerMark **marks, gdouble lower, gdouble upper, gint maxchars)
Editor::metric_get_frames (GtkCustomRulerMark **marks, gdouble lower, gdouble upper, gint /*maxchars*/)
{
nframes64_t mark_interval;
nframes64_t pos;
@ -1856,7 +1856,7 @@ Editor::set_minsec_ruler_scale (gdouble lower, gdouble upper)
}
gint
Editor::metric_get_minsec (GtkCustomRulerMark **marks, gdouble lower, gdouble upper, gint maxchars)
Editor::metric_get_minsec (GtkCustomRulerMark **marks, gdouble lower, gdouble /*upper*/, gint /*maxchars*/)
{
nframes64_t pos;
nframes64_t spacer;

View file

@ -233,7 +233,7 @@ Editor::set_selected_track_from_click (bool press, Selection::Operation op, bool
}
bool
Editor::set_selected_control_point_from_click (Selection::Operation op, bool no_remove)
Editor::set_selected_control_point_from_click (Selection::Operation op, bool /*no_remove*/)
{
if (!clicked_control_point) {
return false;
@ -331,7 +331,7 @@ Editor::mapover_tracks (slot<void, RouteTimeAxisView&, uint32_t> sl, TimeAxisVie
}
void
Editor::mapped_get_equivalent_regions (RouteTimeAxisView& tv, uint32_t ignored, RegionView * basis, vector<RegionView*>* all_equivs) const
Editor::mapped_get_equivalent_regions (RouteTimeAxisView& tv, uint32_t, RegionView * basis, vector<RegionView*>* all_equivs) const
{
boost::shared_ptr<Playlist> pl;
vector<boost::shared_ptr<Region> > results;
@ -433,7 +433,7 @@ Editor::get_regionview_count_from_region_list (boost::shared_ptr<Region> region)
bool
Editor::set_selected_regionview_from_click (bool press, Selection::Operation op, bool no_track_remove)
Editor::set_selected_regionview_from_click (bool press, Selection::Operation op, bool /*no_track_remove*/)
{
vector<RegionView*> all_equivalent_regions;
bool commit = false;
@ -771,7 +771,7 @@ Editor::set_selected_regionview_from_region_list (boost::shared_ptr<Region> regi
}
bool
Editor::set_selected_regionview_from_map_event (GdkEventAny* ev, StreamView* sv, boost::weak_ptr<Region> weak_r)
Editor::set_selected_regionview_from_map_event (GdkEventAny* /*ev*/, StreamView* sv, boost::weak_ptr<Region> weak_r)
{
RegionView* rv;
boost::shared_ptr<Region> r (weak_r.lock());
@ -1282,7 +1282,7 @@ Editor::select_all_selectables_using_edit (bool after)
}
void
Editor::select_all_selectables_between (bool within)
Editor::select_all_selectables_between (bool /*within*/)
{
nframes64_t start;
nframes64_t end;

View file

@ -930,7 +930,7 @@ EngineControl::audio_mode_changed ()
}
}
static bool jack_server_filter(const string& str, void *arg)
static bool jack_server_filter(const string& str, void */*arg*/)
{
return str == "jackd" || str == "jackdmp";
}

View file

@ -850,7 +850,7 @@ ExportFormatDialog::show_linear_enconding_options (boost::shared_ptr<ARDOUR::Exp
}
void
ExportFormatDialog::show_ogg_enconding_options (boost::shared_ptr<ARDOUR::ExportFormatOggVorbis> ptr)
ExportFormatDialog::show_ogg_enconding_options (boost::shared_ptr<ARDOUR::ExportFormatOggVorbis> /*ptr*/)
{
encoding_options_label.set_label (_("Ogg Vorbis options"));

View file

@ -140,7 +140,7 @@ FFTGraph::~FFTGraph()
}
bool
FFTGraph::on_expose_event (GdkEventExpose* event)
FFTGraph::on_expose_event (GdkEventExpose* /*event*/)
{
redraw();
return true;

View file

@ -521,7 +521,7 @@ GainMeterBase::meter_press(GdkEventButton* ev)
}
gint
GainMeterBase::meter_release(GdkEventButton* ev)
GainMeterBase::meter_release(GdkEventButton*)
{
if(!ignore_toggle){
if (wait_for_release){
@ -563,14 +563,14 @@ GainMeterBase::meter_point_clicked ()
}
gint
GainMeterBase::start_gain_touch (GdkEventButton* ev)
GainMeterBase::start_gain_touch (GdkEventButton*)
{
_amp->gain_control()->start_touch ();
return FALSE;
}
gint
GainMeterBase::end_gain_touch (GdkEventButton* ev)
GainMeterBase::end_gain_touch (GdkEventButton*)
{
_amp->gain_control()->stop_touch ();
return FALSE;

View file

@ -369,7 +369,7 @@ GenericPluginUI::automation_state_changed (ControlUI* cui)
}
static void integer_printer (char buf[32], Adjustment &adj, void *arg)
static void integer_printer (char buf[32], Adjustment &adj, void */*arg*/)
{
snprintf (buf, 32, "%.0f", adj.get_value());
}
@ -613,7 +613,7 @@ GenericPluginUI::stop_touch (GenericPluginUI::ControlUI* cui)
}
void
GenericPluginUI::astate_clicked (ControlUI* cui, uint32_t port)
GenericPluginUI::astate_clicked (ControlUI* cui, uint32_t /*port*/)
{
using namespace Menu_Helpers;
@ -739,7 +739,7 @@ GenericPluginUI::processor_active_changed (boost::weak_ptr<Processor> weak_proce
}
bool
GenericPluginUI::start_updating (GdkEventAny* ignored)
GenericPluginUI::start_updating (GdkEventAny*)
{
if (output_controls.size() > 0 ) {
screen_update_connection.disconnect();
@ -750,7 +750,7 @@ GenericPluginUI::start_updating (GdkEventAny* ignored)
}
bool
GenericPluginUI::stop_updating (GdkEventAny* ignored)
GenericPluginUI::stop_updating (GdkEventAny*)
{
if (output_controls.size() > 0 ) {
screen_update_connection.disconnect();

View file

@ -215,7 +215,7 @@ MidiGhostRegion::Hit::x_changed()
}
void
MidiGhostRegion::set_samples_per_unit (double spu)
MidiGhostRegion::set_samples_per_unit (double /*spu*/)
{
}
@ -310,7 +310,7 @@ MidiGhostRegion::add_note(ArdourCanvas::CanvasNote* n)
}
void
MidiGhostRegion::add_hit(ArdourCanvas::CanvasHit* h)
MidiGhostRegion::add_hit(ArdourCanvas::CanvasHit* /*h*/)
{
//events.push_back(new Hit(h, group));
}

View file

@ -62,6 +62,11 @@ static void gtk_custom_ruler_get_property (GObject *object,
static gint
default_metric_get_marks (GtkCustomRulerMark **marks, gdouble lower, gdouble upper, gint maxchars)
{
(void) marks;
(void) lower;
(void) upper;
(void) maxchars;
return 0;
}
@ -193,6 +198,8 @@ gtk_custom_ruler_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
(void) pspec;
GtkCustomRuler *ruler = GTK_CUSTOM_RULER (object);
switch (prop_id)

View file

@ -151,7 +151,7 @@ IOSelector::list_is_global (int dim) const
return (dim == _other);
}
IOSelectorWindow::IOSelectorWindow (ARDOUR::Session& session, boost::shared_ptr<ARDOUR::IO> io, bool can_cancel)
IOSelectorWindow::IOSelectorWindow (ARDOUR::Session& session, boost::shared_ptr<ARDOUR::IO> io, bool /*can_cancel*/)
: _selector (session, io)
{
set_name ("IOSelectorWindow2");

View file

@ -295,14 +295,14 @@ Keyboard::key_is_down (uint32_t keyval)
}
bool
Keyboard::enter_window (GdkEventCrossing *ev, Gtk::Window* win)
Keyboard::enter_window (GdkEventCrossing *, Gtk::Window* win)
{
current_window = win;
return false;
}
bool
Keyboard::leave_window (GdkEventCrossing *ev, Gtk::Window* win)
Keyboard::leave_window (GdkEventCrossing *ev, Gtk::Window* /*win*/)
{
if (ev) {
switch (ev->detail) {
@ -447,11 +447,11 @@ Keyboard::selection_type (guint state)
static void
accel_map_changed (GtkAccelMap* map,
gchar* path,
guint key,
GdkModifierType mod,
gpointer arg)
accel_map_changed (GtkAccelMap* /*map*/,
gchar* /*path*/,
guint /*key*/,
GdkModifierType /*mod*/,
gpointer /*arg*/)
{
Keyboard::keybindings_changed ();
}

View file

@ -135,7 +135,7 @@ LevelMeter::parameter_changed (string p)
}
void
LevelMeter::configuration_changed(ChanCount in, ChanCount out)
LevelMeter::configuration_changed (ChanCount /*in*/, ChanCount /*out*/)
{
color_changed = true;
setup_meters (meter_length, regular_meter_width);
@ -216,7 +216,7 @@ LevelMeter::setup_meters (int len, int initial_width)
}
gint
LevelMeter::meter_button_release (GdkEventButton* ev, uint32_t which)
LevelMeter::meter_button_release (GdkEventButton* ev, uint32_t /*which*/)
{
if (ev->button == 1) {
clear_meters();

View file

@ -66,7 +66,7 @@ LineSetClass::init()
}
void
LineSetClass::class_init_function(void* g_class, void* class_data)
LineSetClass::class_init_function(void* /*g_class*/, void* /*class_data*/)
{
}
@ -503,7 +503,7 @@ LineSet::update_bounds()
* N. find out if the item moved. if it moved, the old bbox and the new bbox need to be updated.
*/
void
LineSet::update_vfunc(double* affine, ArtSVP* clip_path, int flags)
LineSet::update_vfunc(double* /*affine*/, ArtSVP* /*clip_path*/, int /*flags*/)
{
GnomeCanvasItem* item = GNOME_CANVAS_ITEM(gobj());
bool lines_need_redraw = true;
@ -539,7 +539,7 @@ LineSet::update_vfunc(double* affine, ArtSVP* clip_path, int flags)
}
void
LineSet::draw_vfunc(const Glib::RefPtr<Gdk::Drawable>& drawable, int x, int y, int width, int height)
LineSet::draw_vfunc(const Glib::RefPtr<Gdk::Drawable>& /*drawable*/, int /*x*/, int /*y*/, int /*width*/, int /*height*/)
{
cerr << "please don't use the GnomeCanvasLineSet item in a non-aa Canvas" << endl;
abort();
@ -704,7 +704,7 @@ LineSet::bounds_vfunc(double* _x1, double* _y1, double* _x2, double* _y2)
double
LineSet::point_vfunc(double x, double y, int cx, int cy, GnomeCanvasItem** actual_item)
LineSet::point_vfunc(double x, double y, int /*cx*/, int /*cy*/, GnomeCanvasItem** actual_item)
{
double x1, y1, x2, y2;
double dx, dy;
@ -774,7 +774,7 @@ LineSet::region_needs_update(double coord1, double coord2)
* These have been defined to avoid endless recursion with gnomecanvasmm.
* Don't know why this happens
*/
bool LineSet::on_event(GdkEvent* p1)
bool LineSet::on_event(GdkEvent* /*p1*/)
{
return false;
}

View file

@ -421,7 +421,7 @@ LocationEditRow::clock_changed (LocationPart part)
}
void
LocationEditRow::change_aborted (LocationPart part)
LocationEditRow::change_aborted (LocationPart /*part*/)
{
if (i_am_the_modifier || !location) return;
@ -945,7 +945,7 @@ LocationUI::session_gone()
}
bool
LocationUI::on_delete_event (GdkEventAny* ev)
LocationUI::on_delete_event (GdkEventAny*)
{
hide ();
return true;

View file

@ -32,8 +32,8 @@ void
LV2PluginUI::lv2_ui_write(
LV2UI_Controller controller,
uint32_t port_index,
uint32_t buffer_size,
uint32_t format,
uint32_t /*buffer_size*/,
uint32_t /*format*/,
const void* buffer)
{
LV2PluginUI* me = (LV2PluginUI*)controller;
@ -60,7 +60,7 @@ LV2PluginUI::parameter_update (uint32_t port_index, float val)
}
bool
LV2PluginUI::start_updating(GdkEventAny* event)
LV2PluginUI::start_updating(GdkEventAny*)
{
if (!_output_ports.empty()) {
_screen_update_connection.disconnect();
@ -71,7 +71,7 @@ LV2PluginUI::start_updating(GdkEventAny* event)
}
bool
LV2PluginUI::stop_updating(GdkEventAny* event)
LV2PluginUI::stop_updating(GdkEventAny*)
{
if (!_output_ports.empty()) {
_screen_update_connection.disconnect();
@ -157,14 +157,14 @@ LV2PluginUI::package (Gtk::Window& win)
}
bool
LV2PluginUI::configure_handler (GdkEventConfigure* ev)
LV2PluginUI::configure_handler (GdkEventConfigure*)
{
std::cout << "CONFIGURE" << std::endl;
return false;
}
bool
LV2PluginUI::is_update_wanted(uint32_t index)
LV2PluginUI::is_update_wanted(uint32_t /*index*/)
{
/* FIXME this should check the port notification properties, which nobody sets now anyway :) */
return true;

View file

@ -283,7 +283,7 @@ fixup_bundle_environment ()
#endif
static void
sigpipe_handler (int sig)
sigpipe_handler (int /*sig*/)
{
cerr << _("SIGPIPE received - JACK has probably died") << endl;
}

View file

@ -209,7 +209,7 @@ MidiMultipleChannelSelector::set_selected_channels(uint16_t selected_channels)
}
void
MidiMultipleChannelSelector::button_toggled(ToggleButton *button, uint8_t channel)
MidiMultipleChannelSelector::button_toggled(ToggleButton */*button*/, uint8_t channel)
{
++_recursion_counter;
if (_recursion_counter == 1) {

View file

@ -130,7 +130,7 @@ veto_note_range(uint8_t& min, uint8_t& max)
}
RegionView*
MidiStreamView::create_region_view (boost::shared_ptr<Region> r, bool wfd, bool)
MidiStreamView::create_region_view (boost::shared_ptr<Region> r, bool /*wfd*/, bool)
{
boost::shared_ptr<MidiRegion> region = boost::dynamic_pointer_cast<MidiRegion> (r);

View file

@ -939,14 +939,14 @@ MixerStrip::diskstream_changed ()
}
void
MixerStrip::input_changed (IOChange change, void *src)
MixerStrip::input_changed (IOChange /*change*/, void */*src*/)
{
Gtkmm2ext::UI::instance()->call_slot (mem_fun(*this, &MixerStrip::update_input_display));
set_width_enum (_width, this);
}
void
MixerStrip::output_changed (IOChange change, void *src)
MixerStrip::output_changed (IOChange /*change*/, void */*src*/)
{
Gtkmm2ext::UI::instance()->call_slot (mem_fun(*this, &MixerStrip::update_output_display));
set_width_enum (_width, this);
@ -1586,7 +1586,7 @@ MixerStrip::on_key_release_event (GdkEventKey* ev)
}
bool
MixerStrip::on_enter_notify_event (GdkEventCrossing* ev)
MixerStrip::on_enter_notify_event (GdkEventCrossing*)
{
Keyboard::magic_widget_grab_focus ();
grab_focus ();

View file

@ -671,7 +671,7 @@ Mixer_UI::hide_all_audiotracks ()
}
void
Mixer_UI::track_list_reorder (const TreeModel::Path& path, const TreeModel::iterator& iter, int* new_order)
Mixer_UI::track_list_reorder (const TreeModel::Path&, const TreeModel::iterator&, int* /*new_order*/)
{
strip_redisplay_does_not_sync_order_keys = true;
session->set_remote_control_ids();
@ -680,7 +680,7 @@ Mixer_UI::track_list_reorder (const TreeModel::Path& path, const TreeModel::iter
}
void
Mixer_UI::track_list_change (const Gtk::TreeModel::Path& path,const Gtk::TreeModel::iterator& iter)
Mixer_UI::track_list_change (const Gtk::TreeModel::Path&, const Gtk::TreeModel::iterator&)
{
// never reset order keys because of a property change
strip_redisplay_does_not_reset_order_keys = true;
@ -690,7 +690,7 @@ Mixer_UI::track_list_change (const Gtk::TreeModel::Path& path,const Gtk::TreeMod
}
void
Mixer_UI::track_list_delete (const Gtk::TreeModel::Path& path)
Mixer_UI::track_list_delete (const Gtk::TreeModel::Path&)
{
/* this could require an order sync */
session->set_remote_control_ids();
@ -1197,7 +1197,7 @@ Mixer_UI::route_group_name_edit (const Glib::ustring& path, const Glib::ustring&
}
void
Mixer_UI::route_group_row_change (const Gtk::TreeModel::Path& path,const Gtk::TreeModel::iterator& iter)
Mixer_UI::route_group_row_change (const Gtk::TreeModel::Path&, const Gtk::TreeModel::iterator& iter)
{
RouteGroup* group;
@ -1403,7 +1403,7 @@ Mixer_UI::get_state (void)
void
Mixer_UI::pane_allocation_handler (Allocation& alloc, Gtk::Paned* which)
Mixer_UI::pane_allocation_handler (Allocation&, Gtk::Paned* which)
{
int pos;
XMLProperty* prop = 0;

View file

@ -16,7 +16,7 @@ using namespace std;
using namespace Glib;
using namespace Gtk;
NagScreen::NagScreen (std::string context, bool maybe_sub)
NagScreen::NagScreen (std::string /*context*/, bool maybe_sub)
: ArdourDialog (_("Support Ardour Development"), true)
, donate_button (button_group, _("I'd like to make a one-time donation"))
, subscribe_button (button_group, _("Tell me more about becoming a subscriber"))

View file

@ -229,13 +229,13 @@ PannerUI::get_controllable()
}
bool
PannerUI::panning_link_button_press (GdkEventButton* ev)
PannerUI::panning_link_button_press (GdkEventButton*)
{
return true;
}
bool
PannerUI::panning_link_button_release (GdkEventButton* ev)
PannerUI::panning_link_button_release (GdkEventButton*)
{
if (!ignore_toggle) {
_panner->set_linked (!_panner->linked());

View file

@ -91,7 +91,7 @@ create_path(Cairo::RefPtr<Cairo::Context> cr, double x[], double y[], int start,
}
inline void
render_rect(Cairo::RefPtr<Cairo::Context> cr, int note, double x[], double y[],
render_rect(Cairo::RefPtr<Cairo::Context> cr, int /*note*/, double x[], double y[],
PianoRollHeader::Color& bg, PianoRollHeader::Color& tl_shadow, PianoRollHeader::Color& br_shadow)
{
cr->set_source_rgb(bg.r, bg.g, bg.b);
@ -108,7 +108,7 @@ render_rect(Cairo::RefPtr<Cairo::Context> cr, int note, double x[], double y[],
}
inline void
render_cf(Cairo::RefPtr<Cairo::Context> cr, int note, double x[], double y[],
render_cf(Cairo::RefPtr<Cairo::Context> cr, int /*note*/, double x[], double y[],
PianoRollHeader::Color& bg, PianoRollHeader::Color& tl_shadow, PianoRollHeader::Color& br_shadow)
{
cr->set_source_rgb(bg.r, bg.g, bg.b);
@ -125,7 +125,7 @@ render_cf(Cairo::RefPtr<Cairo::Context> cr, int note, double x[], double y[],
}
inline void
render_eb(Cairo::RefPtr<Cairo::Context> cr, int note, double x[], double y[],
render_eb(Cairo::RefPtr<Cairo::Context> cr, int /*note*/, double x[], double y[],
PianoRollHeader::Color& bg, PianoRollHeader::Color& tl_shadow, PianoRollHeader::Color& br_shadow)
{
cr->set_source_rgb(bg.r, bg.g, bg.b);
@ -146,7 +146,7 @@ render_eb(Cairo::RefPtr<Cairo::Context> cr, int note, double x[], double y[],
}
inline void
render_dga(Cairo::RefPtr<Cairo::Context> cr, int note, double x[], double y[],
render_dga(Cairo::RefPtr<Cairo::Context> cr, int /*note*/, double x[], double y[],
PianoRollHeader::Color& bg, PianoRollHeader::Color& tl_shadow, PianoRollHeader::Color& br_shadow)
{
cr->set_source_rgb(bg.r, bg.g, bg.b);
@ -562,7 +562,7 @@ PianoRollHeader::on_leave_notify_event (GdkEventCrossing*)
}
bool
PianoRollHeader::on_scroll_event (GdkEventScroll* ev)
PianoRollHeader::on_scroll_event (GdkEventScroll*)
{
return true;
}

View file

@ -398,7 +398,7 @@ PluginEqGui::run_impulse_analysis()
}
bool
PluginEqGui::expose_analysis_area(GdkEventExpose *evt)
PluginEqGui::expose_analysis_area(GdkEventExpose *)
{
redraw_analysis_area();
@ -463,7 +463,7 @@ PluginEqGui::redraw_analysis_area()
#define PHASE_PROPORTION 0.5
void
PluginEqGui::draw_scales_phase(Gtk::Widget *w, cairo_t *cr)
PluginEqGui::draw_scales_phase(Gtk::Widget */*w*/, cairo_t *cr)
{
float y;
cairo_font_extents_t extents;
@ -561,7 +561,7 @@ PluginEqGui::plot_impulse_phase(Gtk::Widget *w, cairo_t *cr)
}
void
PluginEqGui::draw_scales_power(Gtk::Widget *w, cairo_t *cr)
PluginEqGui::draw_scales_power(Gtk::Widget */*w*/, cairo_t *cr)
{
static float scales[] = { 30.0, 70.0, 125.0, 250.0, 500.0, 1000.0, 2000.0, 5000.0, 10000.0, 15000.0, 20000.0, -1.0 };

View file

@ -336,7 +336,11 @@ PluginSelector::lv2_refiller (const std::string& filterstr)
}
void
#ifdef VST_SUPPORT
PluginSelector::vst_refiller (const std::string& filterstr)
#else
PluginSelector::vst_refiller (const std::string&)
#endif
{
#ifdef VST_SUPPORT
refiller (manager->vst_plugin_info(), filterstr, "VST");
@ -344,7 +348,11 @@ PluginSelector::vst_refiller (const std::string& filterstr)
}
void
#ifdef HAVE_AUDIOUNITS
PluginSelector::au_refiller (const std::string& filterstr)
#else
PluginSelector::au_refiller (const std::string&)
#endif
{
#ifdef HAVE_AUDIOUNITS
refiller (manager->au_plugin_info(), filterstr, "AU");

View file

@ -228,7 +228,11 @@ PluginUIWindow::on_hide ()
}
bool
#ifdef VST_SUPPORT
PluginUIWindow::create_vst_editor(boost::shared_ptr<PluginInsert> insert)
#else
PluginUIWindow::create_vst_editor(boost::shared_ptr<PluginInsert>)
#endif
{
#ifndef VST_SUPPORT
return false;
@ -254,7 +258,11 @@ PluginUIWindow::create_vst_editor(boost::shared_ptr<PluginInsert> insert)
}
bool
#if defined (HAVE_AUDIOUNITS) && defined (GTKOSX)
PluginUIWindow::create_audiounit_editor (boost::shared_ptr<PluginInsert> insert)
#else
PluginUIWindow::create_audiounit_editor (boost::shared_ptr<PluginInsert>)
#endif
{
#if !defined(HAVE_AUDIOUNITS) || !defined(GTKOSX)
return false;
@ -272,7 +280,11 @@ PluginUIWindow::create_audiounit_editor (boost::shared_ptr<PluginInsert> insert)
}
void
#if defined (HAVE_AUDIOUNITS) && defined(GTKOSX)
PluginUIWindow::app_activated (bool yn)
#else
PluginUIWindow::app_activated (bool)
#endif
{
#if defined (HAVE_AUDIOUNITS) && defined(GTKOSX)
cerr << "APP activated ? " << yn << endl;
@ -327,7 +339,7 @@ PluginUIWindow::on_key_press_event (GdkEventKey* event)
}
bool
PluginUIWindow::on_key_release_event (GdkEventKey* event)
PluginUIWindow::on_key_release_event (GdkEventKey *)
{
return true;
}
@ -499,7 +511,7 @@ PlugUIBase::bypass_toggled ()
}
bool
PlugUIBase::focus_toggled (GdkEventButton* ev)
PlugUIBase::focus_toggled (GdkEventButton*)
{
if (Keyboard::the_keyboard().some_magic_widget_has_focus()) {
Keyboard::the_keyboard().magic_widget_drop_focus();

View file

@ -158,7 +158,7 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
bool max_unbound;
bool packed;
MeterInfo(int i) {
MeterInfo (int /*i*/) {
meter = 0;
packed = false;
min = 1.0e10;

View file

@ -110,7 +110,7 @@ PortMatrixColumnLabels::compute_dimensions ()
}
double
PortMatrixColumnLabels::basic_text_x_pos (int c) const
PortMatrixColumnLabels::basic_text_x_pos (int) const
{
return grid_spacing() / 2 +
_highest_text / (2 * sin (angle ()));
@ -441,7 +441,7 @@ PortMatrixColumnLabels::channel_x (ARDOUR::BundleChannel const &bc) const
}
double
PortMatrixColumnLabels::channel_y (ARDOUR::BundleChannel const &bc) const
PortMatrixColumnLabels::channel_y (ARDOUR::BundleChannel const &) const
{
return 0;
}

View file

@ -406,7 +406,7 @@ PortMatrixGrid::set_association (PortMatrixNode node, bool s)
}
void
PortMatrixGrid::button_release (double x, double y, int b, uint32_t t)
PortMatrixGrid::button_release (double x, double y, int b, uint32_t /*t*/)
{
if (b == 1) {

View file

@ -325,7 +325,7 @@ PortMatrixRowLabels::render_channel_name (
}
double
PortMatrixRowLabels::channel_x (ARDOUR::BundleChannel const& bc) const
PortMatrixRowLabels::channel_x (ARDOUR::BundleChannel const &) const
{
return 0;
}

View file

@ -317,19 +317,19 @@ ProcessorBox::show_processor_menu (gint arg)
}
void
ProcessorBox::processor_drag_begin (GdkDragContext *context)
ProcessorBox::processor_drag_begin (GdkDragContext *)
{
processor_drag_in_progress = true;
}
void
ProcessorBox::processor_drag_end (GdkDragContext *context)
ProcessorBox::processor_drag_end (GdkDragContext *)
{
processor_drag_in_progress = false;
}
bool
ProcessorBox::enter_notify (GdkEventCrossing* ev)
ProcessorBox::enter_notify (GdkEventCrossing*)
{
_current_processor_box = this;
Keyboard::magic_widget_grab_focus ();
@ -352,7 +352,7 @@ ProcessorBox::leave_notify (GdkEventCrossing* ev)
}
bool
ProcessorBox::processor_key_press_event (GdkEventKey *ev)
ProcessorBox::processor_key_press_event (GdkEventKey *)
{
/* do real stuff on key release */
return false;
@ -928,7 +928,7 @@ ProcessorBox::show_processor_active (boost::weak_ptr<Processor> weak_processor)
}
void
ProcessorBox::row_deleted (const Gtk::TreeModel::Path& path)
ProcessorBox::row_deleted (const Gtk::TreeModel::Path &)
{
if (!ignore_delete) {
compute_processor_sort_keys ();

View file

@ -135,7 +135,7 @@ public:
private:
void model_changed (TreeModel::Path const & p, TreeModel::iterator const & i)
void model_changed (TreeModel::Path const &, TreeModel::iterator const & i)
{
TreeModel::Row r = *i;
@ -622,7 +622,7 @@ public:
_box->pack_start (*t, false, false);
}
void parameter_changed (string const & p)
void parameter_changed (string const &)
{
/* XXX: these aren't really config options... */
}
@ -872,7 +872,7 @@ public:
private:
void model_changed (TreeModel::Path const & p, TreeModel::iterator const & i)
void model_changed (TreeModel::Path const &, TreeModel::iterator const & i)
{
TreeModel::Row r = *i;

View file

@ -192,7 +192,7 @@ RegionView::~RegionView ()
}
gint
RegionView::_lock_toggle (ArdourCanvas::Item* item, GdkEvent* ev, void* arg)
RegionView::_lock_toggle (ArdourCanvas::Item*, GdkEvent* ev, void* arg)
{
switch (ev->type) {
case GDK_BUTTON_RELEASE:
@ -301,7 +301,7 @@ RegionView::lower_to_bottom ()
}
bool
RegionView::set_position (nframes_t pos, void* src, double* ignored)
RegionView::set_position (nframes_t pos, void* /*src*/, double* ignored)
{
double delta;
bool ret;

View file

@ -304,7 +304,7 @@ RouteTimeAxisView::post_construct ()
}
void
RouteTimeAxisView::set_playlist (boost::shared_ptr<Playlist> newplaylist)
RouteTimeAxisView::set_playlist (boost::shared_ptr<Playlist> /*newplaylist*/)
{
boost::shared_ptr<Playlist> pl = playlist();
assert(pl);
@ -2272,7 +2272,7 @@ RouteTimeAxisView::meter_changed (void *src)
}
void
RouteTimeAxisView::io_changed (IOChange change, void *src)
RouteTimeAxisView::io_changed (IOChange /*change*/, void */*src*/)
{
reset_meter ();
}

View file

@ -297,7 +297,7 @@ RouteUI::mute_press(GdkEventButton* ev)
}
bool
RouteUI::mute_release(GdkEventButton* ev)
RouteUI::mute_release(GdkEventButton*)
{
if (!ignore_toggle) {
if (wait_for_release){
@ -437,7 +437,7 @@ RouteUI::solo_press(GdkEventButton* ev)
}
bool
RouteUI::solo_release(GdkEventButton* ev)
RouteUI::solo_release(GdkEventButton*)
{
if (!ignore_toggle) {
if (wait_for_release) {
@ -512,7 +512,7 @@ RouteUI::rec_enable_press(GdkEventButton* ev)
}
bool
RouteUI::rec_enable_release (GdkEventButton* ev)
RouteUI::rec_enable_release (GdkEventButton*)
{
return true;
}
@ -605,7 +605,7 @@ RouteUI::show_sends_press(GdkEventButton* ev)
}
bool
RouteUI::show_sends_release (GdkEventButton* ev)
RouteUI::show_sends_release (GdkEventButton*)
{
return true;
}
@ -625,14 +625,14 @@ RouteUI::send_blink (bool onoff)
}
void
RouteUI::solo_changed(void* src)
RouteUI::solo_changed(void* /*src*/)
{
Gtkmm2ext::UI::instance()->call_slot (mem_fun (*this, &RouteUI::update_solo_display));
}
void
RouteUI::listen_changed(void* src)
RouteUI::listen_changed(void* /*src*/)
{
Gtkmm2ext::UI::instance()->call_slot (mem_fun (*this, &RouteUI::update_solo_display));
}
@ -682,7 +682,7 @@ RouteUI::solo_changed_so_update_mute ()
}
void
RouteUI::mute_changed(void* src)
RouteUI::mute_changed(void* /*src*/)
{
Gtkmm2ext::UI::instance()->call_slot (mem_fun (*this, &RouteUI::update_mute_display));
}
@ -914,7 +914,7 @@ RouteUI::init_mute_menu(MuteMaster::MutePoint mp, CheckMenuItem* check)
}
void
RouteUI::toggle_mute_menu(MuteMaster::MutePoint mp, Gtk::CheckMenuItem* check)
RouteUI::toggle_mute_menu(MuteMaster::MutePoint /*mp*/, Gtk::CheckMenuItem* /*check*/)
{
// _route->set_mute_config(type, check->get_active(), this);
}
@ -1220,7 +1220,7 @@ RouteUI::denormal_protection_changed ()
}
void
RouteUI::solo_isolated_toggle(void* src, Gtk::CheckMenuItem* check)
RouteUI::solo_isolated_toggle(void* /*src*/, Gtk::CheckMenuItem* check)
{
bool yn = _route->solo_isolated ();

View file

@ -492,7 +492,7 @@ Selection::remove (uint32_t selection_id)
}
void
Selection::remove (nframes_t start, nframes_t end)
Selection::remove (nframes_t /*start*/, nframes_t /*end*/)
{
}

View file

@ -242,7 +242,7 @@ SessionImportDialog::update (string path)
}
void
SessionImportDialog::show_info(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* column)
SessionImportDialog::show_info(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn*)
{
if (path.size() == 1) {
return;

View file

@ -127,7 +127,7 @@ class SessionMetadataSet {
/// Sets session, into which the data is eventually saved
virtual void set_session (ARDOUR::Session * s) { session = s; }
/// allows loading extra data into data sets (for importing etc.)
virtual void load_extra_data (ARDOUR::SessionMetadata const & data) { }
virtual void load_extra_data (ARDOUR::SessionMetadata const & /*data*/) { }
/// Saves data to session
virtual void save_data () = 0;

View file

@ -123,7 +123,7 @@ public:
_box->pack_start (_port_matrix);
}
void parameter_changed (string const & p)
void parameter_changed (string const &)
{
}

View file

@ -365,7 +365,7 @@ SoundFileBox::stop_audition ()
}
bool
SoundFileBox::tags_entry_left (GdkEventFocus *ev)
SoundFileBox::tags_entry_left (GdkEventFocus *)
{
tags_changed ();
return false;
@ -566,13 +566,13 @@ SoundFileBrowser::chooser_file_activated ()
}
void
SoundFileBrowser::found_list_view_activated (const TreeModel::Path& path, TreeViewColumn* col)
SoundFileBrowser::found_list_view_activated (const TreeModel::Path&, TreeViewColumn*)
{
preview.audition ();
}
void
SoundFileBrowser::freesound_list_view_activated (const TreeModel::Path& path, TreeViewColumn* col)
SoundFileBrowser::freesound_list_view_activated (const TreeModel::Path&, TreeViewColumn*)
{
preview.audition ();
}

View file

@ -75,7 +75,7 @@ Splash::on_realize ()
bool
Splash::on_button_release_event (GdkEventButton* ev)
Splash::on_button_release_event (GdkEventButton*)
{
hide ();
return true;

View file

@ -1127,7 +1127,7 @@ ArdourStartup::move_along_now ()
}
void
ArdourStartup::recent_row_activated (const Gtk::TreePath& path, Gtk::TreeViewColumn* col)
ArdourStartup::recent_row_activated (const Gtk::TreePath&, Gtk::TreeViewColumn*)
{
set_page_complete (session_vbox, true);
move_along_now ();

View file

@ -92,7 +92,7 @@ public:
void get_selectables (nframes_t start, nframes_t end, std::list<Selectable* >&);
void get_inverted_selectables (Selection&, std::list<Selectable* >& results);
virtual void update_contents_metrics(boost::shared_ptr<ARDOUR::Region> r) {}
virtual void update_contents_metrics(boost::shared_ptr<ARDOUR::Region>) {}
void add_region_view_weak (boost::weak_ptr<ARDOUR::Region> r);
void add_region_view (boost::shared_ptr<ARDOUR::Region>);

View file

@ -61,7 +61,7 @@ TapeAudioRegionView::TapeAudioRegionView (ArdourCanvas::Group *parent, RouteTime
}
void
TapeAudioRegionView::init (Gdk::Color const & basic_color, bool wfw)
TapeAudioRegionView::init (Gdk::Color const & basic_color, bool /*wfw*/)
{
/* never wait for data: always just create the waves, connect once and then
we'll update whenever we need to.

View file

@ -181,13 +181,13 @@ TempoDialog::init (const BBT_Time& when, double bpm, double note_type, bool mova
}
bool
TempoDialog::bpm_button_press (GdkEventButton* ev)
TempoDialog::bpm_button_press (GdkEventButton*)
{
return false;
}
bool
TempoDialog::bpm_button_release (GdkEventButton* ev)
TempoDialog::bpm_button_release (GdkEventButton*)
{
/* the value has been modified, accept should work now */
@ -196,7 +196,7 @@ TempoDialog::bpm_button_release (GdkEventButton* ev)
}
bool
TempoDialog::entry_key_release (GdkEventKey* ev)
TempoDialog::entry_key_release (GdkEventKey*)
{
if (when_beat_entry.get_text() != "" && when_bar_entry.get_text() != "") {
set_response_sensitive (RESPONSE_ACCEPT, true);
@ -425,7 +425,7 @@ MeterDialog::entry_key_press (GdkEventKey* ev)
}
bool
MeterDialog::entry_key_release (GdkEventKey* ev)
MeterDialog::entry_key_release (GdkEventKey*)
{
if (when_bar_entry.get_text() != "" && bpb_entry.get_text() != "") {
set_response_sensitive (RESPONSE_ACCEPT, true);

View file

@ -106,7 +106,7 @@ ThemeManager::~ThemeManager()
}
int
ThemeManager::save (string path)
ThemeManager::save (string /*path*/)
{
return 0;
}

View file

@ -74,7 +74,7 @@ uint32_t TimeAxisView::hSmall = 0;
bool TimeAxisView::need_size_info = true;
int const TimeAxisView::_max_order = 512;
TimeAxisView::TimeAxisView (ARDOUR::Session& sess, PublicEditor& ed, TimeAxisView* rent, Canvas& canvas)
TimeAxisView::TimeAxisView (ARDOUR::Session& sess, PublicEditor& ed, TimeAxisView* rent, Canvas& /*canvas*/)
: AxisView (sess),
controls_table (2, 8),
_y_position (0),
@ -498,7 +498,7 @@ TimeAxisView::name_entry_key_release (GdkEventKey* ev)
}
bool
TimeAxisView::name_entry_focus_in (GdkEventFocus* ev)
TimeAxisView::name_entry_focus_in (GdkEventFocus*)
{
name_entry.select_region (0, -1);
name_entry.set_name ("EditorActiveTrackNameDisplay");
@ -506,7 +506,7 @@ TimeAxisView::name_entry_focus_in (GdkEventFocus* ev)
}
bool
TimeAxisView::name_entry_focus_out (GdkEventFocus* ev)
TimeAxisView::name_entry_focus_out (GdkEventFocus*)
{
/* clean up */
@ -903,13 +903,13 @@ TimeAxisView::remove_child (boost::shared_ptr<TimeAxisView> child)
}
void
TimeAxisView::get_selectables (nframes_t start, nframes_t end, double top, double bot, list<Selectable*>& result)
TimeAxisView::get_selectables (nframes_t /*start*/, nframes_t /*end*/, double /*top*/, double /*bot*/, list<Selectable*>& /*result*/)
{
return;
}
void
TimeAxisView::get_inverted_selectables (Selection& sel, list<Selectable*>& result)
TimeAxisView::get_inverted_selectables (Selection& /*sel*/, list<Selectable*>& /*result*/)
{
return;
}
@ -1282,7 +1282,7 @@ TimeAxisView::resizer_button_press (GdkEventButton* event)
}
bool
TimeAxisView::resizer_button_release (GdkEventButton* ev)
TimeAxisView::resizer_button_release (GdkEventButton*)
{
_resize_drag_start = -1;
return true;

View file

@ -182,12 +182,12 @@ class TimeAxisView : public virtual AxisView, public PBD::Stateful
/* editing operations */
virtual bool cut_copy_clear (Selection&, Editing::CutCopyOp) { return false; }
virtual bool paste (nframes_t, float times, Selection&, size_t nth) { return false; }
virtual bool paste (nframes_t, float /*times*/, Selection&, size_t /*nth*/) { return false; }
virtual void set_selected_regionviews (RegionSelection&) {}
virtual void set_selected_points (PointSelection&) {}
virtual boost::shared_ptr<ARDOUR::Region> find_next_region (nframes_t pos, ARDOUR::RegionPoint, int32_t dir) {
virtual boost::shared_ptr<ARDOUR::Region> find_next_region (nframes_t /*pos*/, ARDOUR::RegionPoint, int32_t /*dir*/) {
return boost::shared_ptr<ARDOUR::Region> ();
}
@ -210,7 +210,7 @@ class TimeAxisView : public virtual AxisView, public PBD::Stateful
/* call this on the parent */
virtual XMLNode* get_automation_child_xml_node (Evoral::Parameter param) { return 0; }
virtual XMLNode* get_automation_child_xml_node (Evoral::Parameter /*param*/) { return 0; }
virtual LayerDisplay layer_display () const { return Overlaid; }
virtual StreamView* view () const { return 0; }
@ -268,7 +268,7 @@ class TimeAxisView : public virtual AxisView, public PBD::Stateful
/** Do whatever needs to be done to dynamically reset the LHS control menu.
*/
virtual bool handle_display_menu_map_event (GdkEventAny *ev) { return false; }
virtual bool handle_display_menu_map_event (GdkEventAny * /*ev*/) { return false; }
/** Build the standard LHS control size menu for the default heights options.
*/

View file

@ -406,7 +406,7 @@ TimeAxisViewItem::get_position_locked() const
* @param src the identity of the object that initiated the change
*/
void
TimeAxisViewItem::set_max_duration_active(bool active, void* src)
TimeAxisViewItem::set_max_duration_active (bool active, void* /*src*/)
{
max_duration_active = active;
}
@ -429,7 +429,7 @@ TimeAxisViewItem::get_max_duration_active() const
* @param src the identity of the object that initiated the change
*/
void
TimeAxisViewItem::set_min_duration_active(bool active, void* src)
TimeAxisViewItem::set_min_duration_active (bool active, void* /*src*/)
{
min_duration_active = active ;
}
@ -895,7 +895,7 @@ TimeAxisViewItem::reset_width_dependent_items (double pixel_width)
}
void
TimeAxisViewItem::reset_name_width (double pixel_width)
TimeAxisViewItem::reset_name_width (double /*pixel_width*/)
{
set_name_text (item_name);
}

View file

@ -206,7 +206,7 @@ TimeFXDialog::cancel_in_progress ()
}
gint
TimeFXDialog::delete_in_progress (GdkEventAny* ev)
TimeFXDialog::delete_in_progress (GdkEventAny*)
{
status = -2;
request.cancel = true;

View file

@ -165,7 +165,7 @@ add_item_with_sensitivity (Menu_Helpers::MenuList& m, Menu_Helpers::MenuElem e,
gint
just_hide_it (GdkEventAny *ev, Gtk::Window *win)
just_hide_it (GdkEventAny */*ev*/, Gtk::Window *win)
{
win->hide ();
return 0;
@ -285,7 +285,7 @@ xpm2rgba (const char** xpm, uint32_t& w, uint32_t& h)
}
ArdourCanvas::Points*
get_canvas_points (string who, uint32_t npoints)
get_canvas_points (string /*who*/, uint32_t npoints)
{
// cerr << who << ": wants " << npoints << " canvas points" << endl;
#ifdef TRAP_EXCESSIVE_POINT_REQUESTS

View file

@ -71,7 +71,7 @@ Amp::configure_io (ChanCount in, ChanCount out)
}
void
Amp::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes)
Amp::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*end_frame*/, nframes_t nframes)
{
gain_t mute_gain;

View file

@ -101,8 +101,7 @@ public:
void can_automate(Evoral::Parameter);
virtual void auto_state_changed (Evoral::Parameter which) {}
virtual void auto_state_changed (Evoral::Parameter /*which*/) {}
int load_automation (const std::string& path);
int old_set_automation_state(const XMLNode&);

View file

@ -29,7 +29,7 @@ namespace ARDOUR {
template<typename T>
class AutomatableSequence : public Automatable, public Evoral::Sequence<T> {
public:
AutomatableSequence(Session& s, size_t size)
AutomatableSequence(Session& s, size_t /*size*/)
: Evoral::ControlSet()
, Automatable(s)
, Evoral::Sequence<T>(EventTypeMap::instance())

View file

@ -94,9 +94,9 @@ class Diskstream : public SessionObject, public boost::noncopyable
virtual void set_record_enabled (bool yn) = 0;
bool destructive() const { return _flags & Destructive; }
virtual int set_destructive (bool yn) { return -1; }
virtual int set_non_layered (bool yn) { return -1; }
virtual bool can_become_destructive (bool& requires_bounce) const { return false; }
virtual int set_destructive (bool /*yn*/) { return -1; }
virtual int set_non_layered (bool /*yn*/) { return -1; }
virtual bool can_become_destructive (bool& /*requires_bounce*/) const { return false; }
bool hidden() const { return _flags & Hidden; }
bool recordable() const { return _flags & Recordable; }
@ -109,7 +109,7 @@ class Diskstream : public SessionObject, public boost::noncopyable
void set_speed (double);
void non_realtime_set_speed ();
virtual void non_realtime_locate (nframes_t location) {};
virtual void non_realtime_locate (nframes_t /*location*/) {};
virtual void playlist_modified ();
boost::shared_ptr<Playlist> playlist () { return _playlist; }

View file

@ -131,8 +131,8 @@ class RegionExportChannel : public ExportChannel
public:
void read (Sample * data, nframes_t frames_to_read) const { factory.read (channel, data, frames_to_read); }
void get_state (XMLNode * node) const {};
void set_state (XMLNode * node, Session & session) {};
void get_state (XMLNode * /*node*/) const {};
void set_state (XMLNode * /*node*/, Session & /*session*/) {};
bool empty () const { return false; }
// Region export should never have duplicate channels, so there need not be any semantics here
bool operator< (ExportChannel const & other) const { return this < &other; }

View file

@ -137,7 +137,7 @@ class Normalizer : public GraphSinkVertex<float, float>
class NullSink : public GraphSink<float>
{
public:
nframes_t write (float * data, nframes_t frames) { return frames; }
nframes_t write (float * /*data*/, nframes_t frames) { return frames; }
};

View file

@ -21,7 +21,7 @@ class Interpolation {
double target_speed() const { return _target_speed; }
double speed() const { return _speed; }
void add_channel_to (int input_buffer_size, int output_buffer_size) {}
void add_channel_to (int /*input_buffer_size*/, int /*output_buffer_size*/) {}
void remove_channel_from () {}
void reset () {}
@ -101,7 +101,7 @@ class LibSamplerateInterpolation : public Interpolation {
~LibSamplerateInterpolation ();
void set_speed (double new_speed);
void set_target_speed (double new_speed) {}
void set_target_speed (double /*new_speed*/) {}
double speed () const { return _speed; }
void add_channel_to (int input_buffer_size, int output_buffer_size);

View file

@ -82,7 +82,7 @@ class LadspaPlugin : public ARDOUR::Plugin
_descriptor->cleanup (_handle);
}
void set_block_size (nframes_t nframes) {}
void set_block_size (nframes_t /*nframes*/) {}
int connect_and_run (BufferSet& bufs,
ChanMapping in, ChanMapping out,

View file

@ -94,7 +94,7 @@ class LV2Plugin : public ARDOUR::Plugin
_instance = NULL;
}
void set_block_size (nframes_t nframes) {}
void set_block_size (nframes_t /*nframes*/) {}
int connect_and_run (BufferSet& bufs,
ChanMapping in, ChanMapping out,

View file

@ -52,7 +52,7 @@ class MidiRegion : public Region
boost::shared_ptr<MidiSource> midi_source (uint32_t n=0) const;
/* Stub Readable interface */
virtual nframes_t read (Sample*, sframes_t pos, nframes_t cnt, int channel) const { return 0; }
virtual nframes_t read (Sample*, sframes_t /*pos*/, nframes_t /*cnt*/, int /*channel*/) const { return 0; }
virtual sframes_t readable_length() const { return length(); }
nframes_t read_at (MidiRingBuffer<nframes_t>& dst,

View file

@ -210,7 +210,7 @@ class Panner : public SessionObject, public AutomatableControls
AutoStyle automation_style() const;
bool touching() const;
bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const { return true; };
bool can_support_io_configuration (const ChanCount& /*in*/, ChanCount& /*out*/) const { return true; };
/// The fundamental Panner function
void run (BufferSet& src, BufferSet& dest, sframes_t start_frame, sframes_t end_frames, nframes_t nframes);

View file

@ -251,11 +251,11 @@ class Playlist : public SessionObject,
void splice_locked (nframes_t at, nframes64_t distance, boost::shared_ptr<Region> exclude);
void splice_unlocked (nframes_t at, nframes64_t distance, boost::shared_ptr<Region> exclude);
virtual void finalize_split_region (boost::shared_ptr<Region> original, boost::shared_ptr<Region> left, boost::shared_ptr<Region> right) {}
virtual void finalize_split_region (boost::shared_ptr<Region> /*original*/, boost::shared_ptr<Region> /*left*/, boost::shared_ptr<Region> /*right*/) {}
virtual void check_dependents (boost::shared_ptr<Region> region, bool norefresh) {}
virtual void refresh_dependents (boost::shared_ptr<Region> region) {}
virtual void remove_dependents (boost::shared_ptr<Region> region) {}
virtual void check_dependents (boost::shared_ptr<Region> /*region*/, bool /*norefresh*/) {}
virtual void refresh_dependents (boost::shared_ptr<Region> /*region*/) {}
virtual void remove_dependents (boost::shared_ptr<Region> /*region*/) {}
virtual XMLNode& state (bool);

View file

@ -167,12 +167,12 @@ class Plugin : public PBD::StatefulDestructible, public Latent
virtual bool reconfigurable_io() const { return false; }
/* this is only called if reconfigurable_io() returns true */
virtual bool configure_io (ChanCount in, ChanCount out) { return true; }
virtual bool configure_io (ChanCount /*in*/, ChanCount /*out*/) { return true; }
/* specific types of plugins can overload this. As of September 2008, only
AUPlugin does this.
*/
virtual bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const { return false; }
virtual bool can_support_io_configuration (const ChanCount& /*in*/, ChanCount& /*out*/) const { return false; }
virtual ChanCount output_streams() const;
virtual ChanCount input_streams() const;

View file

@ -110,7 +110,9 @@ public:
virtual void cycle_end (nframes_t) = 0;
virtual void cycle_split () = 0;
virtual Buffer& get_buffer (nframes_t nframes, nframes_t offset = 0) = 0;
virtual void flush_buffers (nframes_t, nframes_t offset = 0) {}
virtual void flush_buffers (nframes_t, nframes_t offset = 0) {
(void) offset;
}
static void set_engine (AudioEngine *);

View file

@ -66,12 +66,12 @@ class Processor : public SessionObject, public AutomatableControls, public Laten
virtual nframes_t signal_latency() const { return 0; }
virtual void transport_stopped (sframes_t frame) {}
virtual void transport_stopped (sframes_t /*frame*/) {}
virtual void set_block_size (nframes_t nframes) {}
virtual void set_block_size (nframes_t /*nframes*/) {}
virtual void run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes) {}
virtual void silence (nframes_t nframes) {}
virtual void run (BufferSet& /*bufs*/, sframes_t /*start_frame*/, sframes_t /*end_frame*/, nframes_t /*nframes*/) {}
virtual void silence (nframes_t /*nframes*/) {}
virtual void activate () { _pending_active = true; ActiveChanged(); }
virtual void deactivate () { _pending_active = false; ActiveChanged(); }

View file

@ -250,11 +250,12 @@ class Region
void set_last_layer_op (uint64_t when);
virtual bool is_dependent() const { return false; }
virtual bool depends_on (boost::shared_ptr<Region> other) const { return false; }
virtual bool depends_on (boost::shared_ptr<Region> /*other*/) const { return false; }
virtual int exportme (ARDOUR::Session&, ARDOUR::ExportSpecification&) = 0;
virtual int get_transients (AnalysisFeatureList&, bool force_new = false) {
(void) force_new;
// no transients, but its OK
return 0;
}

Some files were not shown because too many files have changed in this diff Show more