Fix warnings

This commit is contained in:
David Robillard 2016-11-07 04:06:26 -05:00
parent 08fffeffec
commit bfbc4566ad
2 changed files with 5 additions and 3 deletions

View File

@ -776,12 +776,14 @@ AudioEngine::backend_discover (const string& path)
return info;
}
#ifdef NDEBUG
static bool running_from_source_tree ()
{
// dup ARDOUR_UI_UTILS::running_from_source_tree ()
gchar const *x = g_getenv ("ARDOUR_THEMES_PATH");
return x && (string (x).find ("gtk2_ardour") != string::npos);
}
#endif
vector<const AudioBackendInfo*>
AudioEngine::available_backends() const

View File

@ -362,9 +362,9 @@ BufferSet::get_vst_midi (size_t b)
}
BufferSet::VSTBuffer::VSTBuffer (size_t c)
: _capacity (c)
, _events (0)
, _midi_events (0)
: _events (0)
, _midi_events (0)
, _capacity (c)
{
if (_capacity > 0) {
/* from `man malloc`: "If size is 0, then malloc() returns either NULL, or a