From 4e313aa8105aa0a171c55f045fa6b533a54c8679 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 9 Aug 2017 13:56:30 +0200 Subject: [PATCH] Fix unused variable warnings in the polynomial code. --- src/lol/math/polynomial.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lol/math/polynomial.h b/src/lol/math/polynomial.h index aeeac6c6..a140314b 100644 --- a/src/lol/math/polynomial.h +++ b/src/lol/math/polynomial.h @@ -390,7 +390,7 @@ struct LOL_ATTR_NODISCARD polynomial quotient.set(n, remainder.leading()); for (int i = 0; i < p.degree(); ++i) remainder.m_coefficients[n + i] -= remainder.leading() * p[i]; - remainder.m_coefficients.pop(); + (void)remainder.m_coefficients.pop(); } return ret; @@ -400,8 +400,8 @@ private: /* Enforce the non-zero leading coefficient rule. */ void reduce_degree() { - while (m_coefficients.count() && m_coefficients.last() == T(0)) - m_coefficients.pop(); + while (m_coefficients.count() && !m_coefficients.last()) + (void)m_coefficients.pop(); } /* The polynomial coefficients */