From: Matthias Maier Date: Wed, 15 Mar 2017 19:10:38 +0000 (-0500) Subject: Fix unused variable warnings in step-41 X-Git-Tag: v8.5.0-rc1~38^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e33b45a41070695856f42a71cbcb7308a0831b9e;p=dealii.git Fix unused variable warnings in step-41 --- diff --git a/examples/step-41/step-41.cc b/examples/step-41/step-41.cc index 68a889cdd1..8c3662bf82 100644 --- a/examples/step-41/step-41.cc +++ b/examples/step-41/step-41.cc @@ -130,7 +130,8 @@ namespace Step41 double RightHandSide::value (const Point &, const unsigned int component) const { - Assert (component == 0, ExcNotImplemented()); + (void) component; + Assert(component == 0, ExcIndexRange(component, 0, 1)); return -10; } @@ -151,7 +152,8 @@ namespace Step41 double BoundaryValues::value (const Point &, const unsigned int component) const { - Assert (component == 0, ExcNotImplemented()); + (void) component; + Assert(component == 0, ExcIndexRange(component, 0, 1)); return 0; } @@ -174,7 +176,8 @@ namespace Step41 double Obstacle::value (const Point &p, const unsigned int component) const { - Assert (component == 0, ExcNotImplemented()); + (void) component; + Assert(component == 0, ExcIndexRange(component, 0, 1)); if (p (0) < -0.5) return -0.2;