]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a few warnings about unused variables. 9450/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 30 Jan 2020 17:11:52 +0000 (10:11 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 30 Jan 2020 17:11:52 +0000 (10:11 -0700)
source/base/polynomials_adini.cc

index 05714c57523afeb189dd6f7d58501616089fb7dd..6e43d44b207da751f525f01b81f821830a457664 100644 (file)
@@ -143,14 +143,18 @@ PolynomialsAdini<dim>::evaluate(
   std::vector<Tensor<4, dim>> &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));
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.