]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix unused variable warnings in step-26
authorMatthias Maier <tamiko@43-1.org>
Wed, 15 Mar 2017 19:13:42 +0000 (14:13 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 15 Mar 2017 19:16:56 +0000 (14:16 -0500)
examples/step-26/step-26.cc

index 747248b48114d4d9f950b206d32275bd22e139da..08a7687bae866fdf0339abe894966f9c16084d7c 100644 (file)
@@ -145,6 +145,7 @@ namespace Step26
   double RightHandSide<dim>::value (const Point<dim> &p,
                                     const unsigned int component) const
   {
+    (void)component;
     Assert (component == 0, ExcInternalError());
     Assert (dim == 2, ExcNotImplemented());
 
@@ -185,6 +186,7 @@ namespace Step26
   double BoundaryValues<dim>::value (const Point<dim> &/*p*/,
                                      const unsigned int component) const
   {
+    (void)component;
     Assert(component == 0, ExcInternalError());
     return 0;
   }

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.