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 ...@@ -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 srcColorR = KoColorSpaceMaths<channels_type, float>::scaleToA(pixelRGB->red);
const float srcColorG = KoColorSpaceMaths<channels_type, float>::scaleToA(pixelRGB->green); const float srcColorG = KoColorSpaceMaths<channels_type, float>::scaleToA(pixelRGB->green);
const float srcColorB = KoColorSpaceMaths<channels_type, float>::scaleToA(pixelRGB->blue); 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 srcColorL = getLightness<HSLType, float>(srcColorR, srcColorG, srcColorB);
const float lightnessB = 4 * srcColorL - 1; const float lightnessB = 4 * srcColorL - 1;
......
...@@ -62,6 +62,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale ...@@ -62,6 +62,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale
srcPtr += channelsPerAvx2Block; srcPtr += channelsPerAvx2Block;
dstPtr += channelsPerAvx2Block; dstPtr += channelsPerAvx2Block;
} }
#else
Q_UNUSED(avx2Block);
#endif #endif
#ifdef __SSE4_1__ #ifdef __SSE4_1__
...@@ -77,6 +79,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale ...@@ -77,6 +79,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale
srcPtr += channelsPerSse2Block; srcPtr += channelsPerSse2Block;
dstPtr += channelsPerSse2Block; dstPtr += channelsPerSse2Block;
} }
#else
Q_UNUSED(sse2Block);
#endif #endif
for (int i = 0; i < scalarBlock; i++) { for (int i = 0; i < scalarBlock; i++) {
...@@ -160,6 +164,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale ...@@ -160,6 +164,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale
srcPtr += channelsPerAvx2Block; srcPtr += channelsPerAvx2Block;
dstPtr += channelsPerAvx2Block; dstPtr += channelsPerAvx2Block;
} }
#else
Q_UNUSED(avx2Block);
#endif #endif
#ifdef __SSE2__ #ifdef __SSE2__
...@@ -185,6 +191,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale ...@@ -185,6 +191,8 @@ class KoOptimizedRgbPixelDataScalerU8ToU16 : public KoOptimizedRgbPixelDataScale
srcPtr += channelsPerSse2Block; srcPtr += channelsPerSse2Block;
dstPtr += channelsPerSse2Block; dstPtr += channelsPerSse2Block;
} }
#else
Q_UNUSED(sse2Block);
#endif #endif
for (int i = 0; i < scalarBlock; i++) { for (int i = 0; i < scalarBlock; i++) {
......
...@@ -144,6 +144,9 @@ QString KisColorSmudgeStrategyBase::finalCompositeOp(bool smearAlpha) const ...@@ -144,6 +144,9 @@ QString KisColorSmudgeStrategyBase::finalCompositeOp(bool smearAlpha) const
quint8 KisColorSmudgeStrategyBase::finalPainterOpacity(qreal opacity, qreal smudgeRateValue) quint8 KisColorSmudgeStrategyBase::finalPainterOpacity(qreal opacity, qreal smudgeRateValue)
{ {
Q_UNUSED(opacity);
Q_UNUSED(smudgeRateValue);
return OPACITY_OPAQUE_U8; return OPACITY_OPAQUE_U8;
} }
......
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
#include <kis_pressure_sharpness_option.h> #include <kis_pressure_sharpness_option.h>
#include <kis_texture_option.h> #include <kis_texture_option.h>
#include <KoColorModelStandardIds.h>
#include <kundo2command.h> #include <kundo2command.h>
namespace KisDabCacheUtils 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