summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-27 17:55:26 +0200
committerRobin Gareus <robin@gareus.org>2016-05-27 18:28:26 +0200
commit4aea1285c96b1dee58fc541a57325b5c0bc99390 (patch)
tree96bee9b49a6420f51f2df250a94e6be8b603fe30 /libs
parent46709de8ab78c0ccd5086986c3f1f9737a3f81a4 (diff)
fix some false-positive compiler warnings
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session.cc1
-rw-r--r--libs/ardour/session_midi.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index 305cfe52f0..e751cfbe38 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -3210,6 +3210,7 @@ Session::new_route_from_template (uint32_t how_many, XMLNode& node, const std::s
case NewPlaylist:
rename_playlist = true;
break;
+ default:
case CopyPlaylist:
case SharePlaylist:
rename_playlist = false;
diff --git a/libs/ardour/session_midi.cc b/libs/ardour/session_midi.cc
index 8c1c8b15ff..c2010fd592 100644
--- a/libs/ardour/session_midi.cc
+++ b/libs/ardour/session_midi.cc
@@ -389,7 +389,7 @@ Session::send_full_time_code (framepos_t const t, MIDI::pframes_t nframes)
outbound_mtc_timecode_frame = mtc_tc;
transmitting_timecode_time = timecode;
- LatencyRange mtc_out_latency; // TODO cache this, update on engine().GraphReordered()
+ LatencyRange mtc_out_latency = {0, 0}; // TODO cache this, update on engine().GraphReordered()
_midi_ports->mtc_output_port ()->get_connected_latency_range (ltc_out_latency, true);
frameoffset_t mtc_offset = worst_playback_latency() - mtc_out_latency.max;