From b7eb095dd840fa1207cb19b4c3bc63d5ee196f27 Mon Sep 17 00:00:00 2001 From: GullCode Date: Wed, 27 Jan 2021 15:58:56 +0100 Subject: [PATCH] Quoted unused vars and voided one --- firmware/baseband/proc_am_tv.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/firmware/baseband/proc_am_tv.cpp b/firmware/baseband/proc_am_tv.cpp index 4c2c7e9d..c5353a57 100644 --- a/firmware/baseband/proc_am_tv.cpp +++ b/firmware/baseband/proc_am_tv.cpp @@ -43,14 +43,15 @@ void WidebandFMAudio::execute(const buffer_c8_t& buffer) { const buffer_c16_t buffer_c16 {spectrum.data(),spectrum.size(),buffer.sampling_rate}; channel_spectrum.feed(buffer_c16); - int8_t re, im; - int8_t mag; + int8_t re ; + //int8_t im; + //int8_t mag; for (size_t i = 0; i < 128; i++) { re = buffer.p[i].real(); - im = buffer.p[i].imag(); - mag = __builtin_sqrtf((re * re) + (im * im)) ; + //im = buffer.p[i].imag(); + //mag = __builtin_sqrtf((re * re) + (im * im)) ; const unsigned int v = re + 127.0f; //timescope audio_spectrum.db[i] = std::max(0U, std::min(255U, v)); } @@ -75,6 +76,7 @@ void WidebandFMAudio::on_message(const Message* const message) { } void WidebandFMAudio::configure(const WFMConfigureMessage& message) { + (void)message; // avoid warning configured = true; }