Fix some warnings.
git-svn-id: svn://localhost/ardour2/branches/3.0@12048 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9cc110f111
commit
9befa88deb
@ -180,8 +180,8 @@ MidiListEditor::scroll_event (GdkEventScroll* ev)
|
||||
TreeViewColumn* col;
|
||||
int cellx;
|
||||
int celly;
|
||||
int idelta;
|
||||
double fdelta;
|
||||
int idelta = 0;
|
||||
double fdelta = 0;
|
||||
MidiModel::NoteDiffCommand::Property prop (MidiModel::NoteDiffCommand::NoteNumber);
|
||||
bool apply = false;
|
||||
bool was_selected = false;
|
||||
@ -586,8 +586,8 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
|
||||
double fval;
|
||||
int ival;
|
||||
bool apply = false;
|
||||
int idelta;
|
||||
double fdelta;
|
||||
int idelta = 0;
|
||||
double fdelta = 0;
|
||||
char* opname;
|
||||
switch (edit_column) {
|
||||
case 0: // start
|
||||
|
@ -1806,7 +1806,7 @@ TempoMap::framepos_plus_beats (framepos_t pos, Evoral::MusicalTime beats) const
|
||||
{
|
||||
Glib::RWLock::ReaderLock lm (lock);
|
||||
Metrics::const_iterator next_tempo;
|
||||
const TempoSection* tempo;
|
||||
const TempoSection* tempo = 0;
|
||||
|
||||
/* Find the starting tempo metric */
|
||||
|
||||
|
@ -422,9 +422,9 @@ ControlList::thin ()
|
||||
{
|
||||
Glib::Mutex::Lock lm (_lock);
|
||||
|
||||
ControlEvent* prevprev;
|
||||
ControlEvent* cur;
|
||||
ControlEvent* prev;
|
||||
ControlEvent* prevprev = 0;
|
||||
ControlEvent* cur = 0;
|
||||
ControlEvent* prev = 0;
|
||||
iterator pprev;
|
||||
int counter = 0;
|
||||
|
||||
|
@ -231,6 +231,7 @@ RingBufferNPT<T>::get_read_vector (RingBufferNPT<T>::rw_vector *vec)
|
||||
|
||||
vec->buf[0] = &buf[r];
|
||||
vec->len[0] = free_cnt;
|
||||
vec->buf[1] = 0;
|
||||
vec->len[1] = 0;
|
||||
}
|
||||
}
|
||||
|
@ -834,7 +834,11 @@ RubberBandStretcher::Impl::study(const float *const *input, size_t samples, bool
|
||||
// cd.accumulator is not otherwise used during studying,
|
||||
// so we can use it as a temporary buffer here
|
||||
|
||||
#ifdef NDEBUG
|
||||
inbuf.peek(cd.accumulator, m_windowSize);
|
||||
#else
|
||||
size_t got = inbuf.peek(cd.accumulator, m_windowSize);
|
||||
#endif
|
||||
assert(final || got == m_windowSize);
|
||||
|
||||
m_window->cut(cd.accumulator);
|
||||
|
@ -87,12 +87,14 @@ Strip::Strip (Surface& s, const std::string& name, int index, const map<Button::
|
||||
_vpot = dynamic_cast<Pot*> (Pot::factory (*_surface, Pot::ID + index, "vpot", *this));
|
||||
_meter = dynamic_cast<Meter*> (Meter::factory (*_surface, index, "meter", *this));
|
||||
|
||||
#ifndef NDEBUG
|
||||
for (map<Button::ID,StripButtonInfo>::const_iterator b = strip_buttons.begin(); b != strip_buttons.end(); ++b) {
|
||||
Button* bb = dynamic_cast<Button*> (Button::factory (*_surface, b->first, b->second.base_id + index, b->second.name, *this));
|
||||
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("surface %1 strip %2 new button BID %3 id %4 from base %5\n",
|
||||
_surface->number(), index, Button::id_to_name (bb->bid()),
|
||||
bb->id(), b->second.base_id));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Strip::~Strip ()
|
||||
|
Loading…
Reference in New Issue
Block a user