fix some false-positive compiler warnings
authorRobin Gareus <robin@gareus.org>
Fri, 27 May 2016 15:55:26 +0000 (17:55 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 27 May 2016 16:28:26 +0000 (18:28 +0200)
libs/ardour/session.cc
libs/ardour/session_midi.cc

index 305cfe52f0d95966e75430f77fc5317da3e30575..e751cfbe38bf4854ba3316283b635f6a84fe1103 100644 (file)
@@ -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;
index 8c1c8b15ff52f2950c543c0a4c5af52c19ff41ec..c2010fd5921a63b0b95a2ae8a6888283bed9bb5c 100644 (file)
@@ -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;