changeset 1396:2e316a724336

Fix compiler warning
author Chris Cannam
date Wed, 14 Nov 2018 14:29:08 +0000
parents 32bbb86094c3
children 9ea551137329
files layer/SpectrumLayer.cpp
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/layer/SpectrumLayer.cpp	Wed Nov 14 14:23:17 2018 +0000
+++ b/layer/SpectrumLayer.cpp	Wed Nov 14 14:29:08 2018 +0000
@@ -785,10 +785,8 @@
             if (bin < cs) value *= curve[bin];
             
             double norm = 0.f;
-            // we need the norm here for colour map; the y coord is
-            // only used to pick a label height if illuminating the
-            // local point
-            double y = getYForValue(v, value, norm);
+            // we only need the norm here, for the colour map
+            (void)getYForValue(v, value, norm);
 
             QColor colour = mapper.map(norm);