Some hints for clang static analysis

This commit is contained in:
Robin Gareus 2019-08-23 05:15:17 +02:00
parent e5927d689c
commit 9836bd786f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 0 deletions

View File

@ -356,6 +356,7 @@ AudioEngine::process_callback (pframes_t nframes)
*/
if (session_removal_countdown <= nframes) {
assert (_session);
_session->midi_panic ();
}

View File

@ -2726,6 +2726,7 @@ LV2Plugin::connect_and_run(BufferSet& bufs,
}
++m;
} else {
assert (metric);
tmetric.set_metric(metric);
Timecode::BBT_Time bbt;
bbt = tmap.bbt_at_sample (metric->sample());