From: Martin Kronbichler Date: Thu, 9 Sep 2021 07:42:39 +0000 (+0200) Subject: Avoid warning about unused variable X-Git-Tag: v9.4.0-rc1~989^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12750%2Fhead;p=dealii.git Avoid warning about unused variable --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 874b71c4db..ba253fc8c0 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -1246,6 +1246,7 @@ Iterator Tensor<0, dim, Number>::unroll_recursion(const Iterator current, const Iterator end) const { + (void)end; Assert(dim != 0, ExcMessage("Cannot unroll an object of type Tensor<0,0,Number>")); Assert(std::distance(current, end) >= 1,