Fix warnings
This commit is contained in:
parent
08fffeffec
commit
bfbc4566ad
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user