mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
Fix warnings
This commit is contained in:
parent
08fffeffec
commit
bfbc4566ad
2 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue