From b106cdd5f52f86bc46e18faa66f34aec63ef2f92 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 30 Jan 2020 10:11:52 -0700 Subject: [PATCH] Avoid a few warnings about unused variables. --- source/base/polynomials_adini.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/base/polynomials_adini.cc b/source/base/polynomials_adini.cc index 05714c5752..6e43d44b20 100644 --- a/source/base/polynomials_adini.cc +++ b/source/base/polynomials_adini.cc @@ -143,14 +143,18 @@ PolynomialsAdini::evaluate( std::vector> &fourth_derivatives) const { const unsigned int n_pols = this->n(); + (void)n_pols; + Assert(values.size() == n_pols || values.size() == 0, ExcDimensionMismatch(values.size(), n_pols)); Assert(grads.size() == n_pols || grads.size() == 0, ExcDimensionMismatch(grads.size(), n_pols)); Assert(grad_grads.size() == n_pols || grad_grads.size() == 0, ExcDimensionMismatch(grad_grads.size(), n_pols)); + (void)third_derivatives; Assert(third_derivatives.size() == n_pols || third_derivatives.size() == 0, ExcDimensionMismatch(third_derivatives.size(), n_pols)); + (void)fourth_derivatives; Assert(fourth_derivatives.size() == n_pols || fourth_derivatives.size() == 0, ExcDimensionMismatch(fourth_derivatives.size(), n_pols)); -- 2.39.5