From a56d34ba69efb00ff19b22040953463744fbecef Mon Sep 17 00:00:00 2001 From: koecher Date: Fri, 24 May 2013 12:52:52 +0000 Subject: [PATCH] added some (void)i to avoid warnings in optimized mode to tria_accessor.templates.h git-svn-id: https://svn.dealii.org/trunk@29565 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/grid/tria_accessor.templates.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deal.II/include/deal.II/grid/tria_accessor.templates.h b/deal.II/include/deal.II/grid/tria_accessor.templates.h index 5379e3a5af..00b9d1215c 100644 --- a/deal.II/include/deal.II/grid/tria_accessor.templates.h +++ b/deal.II/include/deal.II/grid/tria_accessor.templates.h @@ -2197,6 +2197,7 @@ unsigned int TriaAccessor<0, 1, spacedim>::vertex_index (const unsigned int i) const { Assert(i==0, ExcIndexRange(i, 0, 1)); + (void)i; return global_vertex_index; } @@ -2208,6 +2209,7 @@ Point & TriaAccessor<0, 1, spacedim>::vertex (const unsigned int i) const { Assert(i==0, ExcIndexRange(i, 0, 1)); + (void)i; return const_cast &> (this->tria->vertices[global_vertex_index]); } -- 2.39.5