From 41010019e31fc9a8af3f6f65dd3fad59de5a8e57 Mon Sep 17 00:00:00 2001 From: paulfd Date: Sat, 21 Sep 2019 11:16:23 +0200 Subject: [PATCH] Cleanups --- benchmarks/BM_ADSR.cpp | 4 ++-- sfizz/Synth.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmarks/BM_ADSR.cpp b/benchmarks/BM_ADSR.cpp index b54dd720..0125507f 100644 --- a/benchmarks/BM_ADSR.cpp +++ b/benchmarks/BM_ADSR.cpp @@ -49,7 +49,7 @@ static void Point(benchmark::State& state) { out = envelope.getNextValue(); benchmark::DoNotOptimize(output); } - state.counters["Per block"] = benchmark::Counter(envelopeSize / state.range(0), benchmark::Counter::kIsIterationInvariantRate | benchmark::Counter::kInvert); + state.counters["Per block"] = benchmark::Counter(envelopeSize / state.range(0), benchmark::Counter::kIsIterationInvariantRate); } static void Block(benchmark::State& state) { @@ -63,7 +63,7 @@ static void Block(benchmark::State& state) { benchmark::DoNotOptimize(output); } - state.counters["Per block"] = benchmark::Counter(envelopeSize / state.range(0), benchmark::Counter::kIsIterationInvariantRate | benchmark::Counter::kInvert); + state.counters["Per block"] = benchmark::Counter(envelopeSize / state.range(0), benchmark::Counter::kIsIterationInvariantRate); } BENCHMARK(Point)->RangeMultiplier(2)->Range((2<<6), (2<<11)); diff --git a/sfizz/Synth.cpp b/sfizz/Synth.cpp index a8f5a1ec..81453549 100644 --- a/sfizz/Synth.cpp +++ b/sfizz/Synth.cpp @@ -356,6 +356,7 @@ void sfz::Synth::noteOn(int delay, int channel, int noteNumber, uint8_t velocity } } +void sfz::Synth::noteOff(int delay, int channel, int noteNumber, uint8_t velocity [[maybe_unused]]) noexcept { ASSERT(noteNumber < 128); ASSERT(noteNumber >= 0);