From: Wolfgang Bangerth Date: Thu, 30 Jan 2020 17:11:52 +0000 (-0700) Subject: Avoid a few warnings about unused variables. X-Git-Tag: v9.2.0-rc1~589^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b106cdd5f52f86bc46e18faa66f34aec63ef2f92;p=dealii.git Avoid a few warnings about unused variables. --- 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));