[apps/shared] Silence warning for unused variable

Change-Id: I1df4a8c111688e00a82d4448d47fd571fec738e4
This commit is contained in:
Hugo Saint-Vignes
2020-10-28 15:49:35 +01:00
committed by Émilie Feral
parent eb5f4b333a
commit aa50a5eb7c

View File

@@ -158,6 +158,7 @@ void InteractiveCurveViewRange::normalize() {
* properly normalize. */
constexpr float limit = 1e7f;
assert(isOrthonormal() || xMin() < -limit || xMax() > limit || yMin() < -limit || yMax() > limit);
(void) limit; // Silence compilation warning about unused variable.
setZoomNormalize(isOrthonormal());
}