From: koecher Date: Fri, 24 May 2013 12:52:52 +0000 (+0000) Subject: added some (void)i to avoid warnings in optimized mode to tria_accessor.templates.h X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a56d34ba69efb00ff19b22040953463744fbecef;p=dealii-svn.git 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 --- 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]); }