[effects/wobblywindows] Move computeVectorBounds into ifdef section

Fixes unused function warning with clang.
icc-effect-5.14.5
Martin Gräßlin 2017-07-31 17:58:57 +02:00
parent 8b2b11196b
commit 3f238470c8
1 changed files with 2 additions and 0 deletions

View File

@ -686,6 +686,7 @@ static inline void fixVectorBounds(WobblyWindowsEffect::Pair& vec, qreal min, qr
}
}
#if defined COMPUTE_STATS
static inline void computeVectorBounds(WobblyWindowsEffect::Pair& vec, WobblyWindowsEffect::Pair& bound)
{
if (fabs(vec.x) < bound.x) {
@ -699,6 +700,7 @@ static inline void computeVectorBounds(WobblyWindowsEffect::Pair& vec, WobblyWin
bound.y = fabs(vec.y);
}
}
#endif
} // close the anonymous namespace