# HG changeset patch # User Chris Cannam # Date 1488293233 0 # Node ID 9e1559b08f0df5aed3e1a45d85ad3d9a30d012b0 # Parent c49a48fcc36442791ee1cbc2fc8358bb975fbcde Fix a couple of compiler warnings diff -r c49a48fcc364 -r 9e1559b08f0d layer/SliceLayer.cpp --- a/layer/SliceLayer.cpp Tue Feb 28 14:33:31 2017 +0000 +++ b/layer/SliceLayer.cpp Tue Feb 28 14:47:13 2017 +0000 @@ -368,8 +368,6 @@ } int xorigin = getVerticalScaleWidth(v, true, paint) + 1; - int w = v->getPaintWidth() - xorigin - 1; - m_xorigins[v->getId()] = xorigin; // for use in getFeatureDescription int yorigin = v->getPaintHeight() - 20 - paint.fontMetrics().height() - 7; diff -r c49a48fcc364 -r 9e1559b08f0d layer/SpectrogramLayer.cpp --- a/layer/SpectrogramLayer.cpp Tue Feb 28 14:33:31 2017 +0000 +++ b/layer/SpectrogramLayer.cpp Tue Feb 28 14:47:13 2017 +0000 @@ -200,6 +200,7 @@ case ColumnNormalization::Hybrid: return 3; case ColumnNormalization::Sum1: + case ColumnNormalization::Range01: default: return 0; } } diff -r c49a48fcc364 -r 9e1559b08f0d layer/SpectrumLayer.cpp --- a/layer/SpectrumLayer.cpp Tue Feb 28 14:33:31 2017 +0000 +++ b/layer/SpectrumLayer.cpp Tue Feb 28 14:47:13 2017 +0000 @@ -415,8 +415,6 @@ paint.setPen(mapper.getContrastingColour()); int xorigin = m_xorigins[v->getId()]; - int w = v->getPaintWidth() - xorigin - 1; - paint.drawLine(xorigin, cursorPos.y(), v->getPaintWidth(), cursorPos.y()); paint.drawLine(cursorPos.x(), cursorPos.y(), cursorPos.x(), v->getPaintHeight());