From 54c993c4f55dd429e771c4542fb9e9ccaa1819d4 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sun, 18 Sep 2016 10:46:40 -0400 Subject: [PATCH] Avoid unreachable code warning --- src/FreqWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FreqWindow.cpp b/src/FreqWindow.cpp index ccb377235..3f6bde889 100644 --- a/src/FreqWindow.cpp +++ b/src/FreqWindow.cpp @@ -1317,8 +1317,8 @@ bool SpectrumAnalyst::Calculate(Algorithm alg, int windowFunc, } float mYMin = 1000000, mYMax = -1000000; - switch (alg) { double scale; + switch (alg) { case Spectrum: // Convert to decibels mYMin = 1000000.;