# HG changeset patch # User Chris Cannam # Date 1542205748 0 # Node ID 2e316a724336ff217168a3272061af5a9d21b821 # Parent 32bbb86094c3ceb2747ea68c04ef425b31ff78f4 Fix compiler warning diff -r 32bbb86094c3 -r 2e316a724336 layer/SpectrumLayer.cpp --- 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);