summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/event_type_map.cc3
-rw-r--r--libs/pbd/xml++.cc2
2 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/event_type_map.cc b/libs/ardour/event_type_map.cc
index cbc3458615..d380906c0c 100644
--- a/libs/ardour/event_type_map.cc
+++ b/libs/ardour/event_type_map.cc
@@ -82,7 +82,7 @@ Evoral::ControlList::InterpolationStyle
EventTypeMap::interpolation_of(const Evoral::Parameter& param)
{
switch (param.type()) {
- case MidiCCAutomation:
+ case MidiCCAutomation:
switch (param.id()) {
case MIDI_CTL_LSB_BANK:
case MIDI_CTL_MSB_BANK:
@@ -128,6 +128,7 @@ EventTypeMap::interpolation_of(const Evoral::Parameter& param)
case MidiPitchBenderAutomation: return Evoral::ControlList::Linear; break;
default: assert(false);
}
+ return Evoral::ControlList::Linear; // Not reached, suppress warnings
}
diff --git a/libs/pbd/xml++.cc b/libs/pbd/xml++.cc
index ec1c8a7b60..eb48c8e346 100644
--- a/libs/pbd/xml++.cc
+++ b/libs/pbd/xml++.cc
@@ -68,7 +68,7 @@ XMLTree::read_internal(bool validate)
delete _root;
_root = 0;
- xmlParserCtxtPtr ctxt; /* the parser context */
+ xmlParserCtxtPtr ctxt = NULL; /* the parser context */
xmlDocPtr doc; /* the resulting document tree */
xmlKeepBlanksDefault(0);