[effects/wobblywindows] Move computeVectorBounds into ifdef section
Fixes unused function warning with clang.icc-effect-5.14.5
parent
8b2b11196b
commit
3f238470c8
|
@ -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)
|
static inline void computeVectorBounds(WobblyWindowsEffect::Pair& vec, WobblyWindowsEffect::Pair& bound)
|
||||||
{
|
{
|
||||||
if (fabs(vec.x) < bound.x) {
|
if (fabs(vec.x) < bound.x) {
|
||||||
|
@ -699,6 +700,7 @@ static inline void computeVectorBounds(WobblyWindowsEffect::Pair& vec, WobblyWin
|
||||||
bound.y = fabs(vec.y);
|
bound.y = fabs(vec.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
} // close the anonymous namespace
|
} // close the anonymous namespace
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue