Commit b3b966f5 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix unused variable warnings

parent 48f7e12a
......@@ -97,7 +97,7 @@ inline static void modulateLightnessByGrayBrushRGB(quint8 *pixels, const QRgb *b
const float srcColorR = KoColorSpaceMaths<channels_type, float>::scaleToA(pixelRGB->red);
const float srcColorG = KoColorSpaceMaths<channels_type, float>::scaleToA(pixelRGB->green);
const float srcColorB = KoColorSpaceMaths<channels_type, float>::scaleToA(pixelRGB->blue);
const float srcColorA = KoColorSpaceMaths<channels_type, float>::scaleToA(pixelRGB->alpha);
//const float srcColorA = KoColorSpaceMaths<channels_type, float>::scaleToA(pixelRGB->alpha);
const float srcColorL = getLightness<HSLType, float>(srcColorR, srcColorG, srcColorB);
const float lightnessB = 4 * srcColorL - 1;
......
......@@ -62,6 +62,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale
srcPtr += channelsPerAvx2Block;
dstPtr += channelsPerAvx2Block;
}
#else
Q_UNUSED(avx2Block);
#endif
#ifdef __SSE4_1__
......@@ -77,6 +79,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale
srcPtr += channelsPerSse2Block;
dstPtr += channelsPerSse2Block;
}
#else
Q_UNUSED(sse2Block);
#endif
for (int i = 0; i < scalarBlock; i++) {
......@@ -160,6 +164,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale
srcPtr += channelsPerAvx2Block;
dstPtr += channelsPerAvx2Block;
}
#else
Q_UNUSED(avx2Block);
#endif
#ifdef __SSE2__
......@@ -185,6 +191,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale
srcPtr += channelsPerSse2Block;
dstPtr += channelsPerSse2Block;
}
#else
Q_UNUSED(sse2Block);
#endif
for (int i = 0; i < scalarBlock; i++) {
......
......@@ -144,6 +144,9 @@ QString KisColorSmudgeStrategyBase::finalCompositeOp(bool smearAlpha) const
quint8 KisColorSmudgeStrategyBase::finalPainterOpacity(qreal opacity, qreal smudgeRateValue)
{
Q_UNUSED(opacity);
Q_UNUSED(smudgeRateValue);
return OPACITY_OPAQUE_U8;
}
......
......@@ -14,8 +14,6 @@
#include <kis_pressure_sharpness_option.h>
#include <kis_texture_option.h>
#include <KoColorModelStandardIds.h>
#include <kundo2command.h>
namespace KisDabCacheUtils
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment