Skip to content

Commit

Permalink
Merge pull request #12750 from kronbichler/avoid_unused_variable
Browse files Browse the repository at this point in the history
Avoid warning about unused variable
  • Loading branch information
kronbichler committed Sep 9, 2021
2 parents 70d0001 + 94f71d0 commit c090a8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/deal.II/base/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c090a8c

Please sign in to comment.