]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warnings about unused function arguments. 2409/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 24 Mar 2016 20:25:56 +0000 (15:25 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 24 Mar 2016 20:25:56 +0000 (15:25 -0500)
source/grid/manifold.cc

index 0259a243a3ce2105613bb6e97ae0d4647b62bb47..d143c92f4a5a7575dc32df995f5bc108a4523bbf 100644 (file)
@@ -69,7 +69,7 @@ Manifold<2, 2>::
 normal_vector (const typename Triangulation<2, 2>::face_iterator &face,
                const Point<2> &p) const
 {
-  const int spacedim=2, dim=2;
+  const int spacedim=2;
 
   Tensor<1,spacedim> tangent = ((p-face->vertex(0)).norm_square() > (p-face->vertex(1)).norm_square() ?
                                 -get_tangent_vector(p, face->vertex(0)) :
@@ -84,7 +84,7 @@ Manifold<3, 3>::
 normal_vector (const typename Triangulation<3, 3>::face_iterator &face,
                const Point<3> &p) const
 {
-  const int spacedim=3, dim=3;
+  const int spacedim=3;
   Tensor<1,spacedim> t1,t2;
 
   // Take the difference between p and all four vertices
@@ -167,8 +167,8 @@ normal_vector (const typename Triangulation<3, 3>::face_iterator &face,
 template <int dim, int spacedim>
 Tensor<1,spacedim>
 Manifold<dim, spacedim>::
-normal_vector (const typename Triangulation<dim, spacedim>::face_iterator &face,
-               const Point<spacedim> &p) const
+normal_vector (const typename Triangulation<dim, spacedim>::face_iterator &/*face*/,
+               const Point<spacedim> &/*p*/) const
 {
   Assert(false, ExcPureFunctionCalled());
   return Tensor<1,spacedim>();

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.