From: Matthias Maier Date: Wed, 15 Mar 2017 19:04:45 +0000 (-0500) Subject: Fix unused variable warnings in step-23 X-Git-Tag: v8.5.0-rc1~38^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30dbbecd456cfe00aa0d3fbcdf4bd3b3b5ed69db;p=dealii.git Fix unused variable warnings in step-23 --- diff --git a/examples/step-23/step-23.cc b/examples/step-23/step-23.cc index ee15a4587e..03089ec69c 100644 --- a/examples/step-23/step-23.cc +++ b/examples/step-23/step-23.cc @@ -185,7 +185,8 @@ namespace Step23 double InitialValuesU::value (const Point &/*p*/, const unsigned int component) const { - Assert (component == 0, ExcInternalError()); + (void) component; + Assert(component == 0, ExcIndexRange(component, 0, 1)); return 0; } @@ -195,7 +196,8 @@ namespace Step23 double InitialValuesV::value (const Point &/*p*/, const unsigned int component) const { - Assert (component == 0, ExcInternalError()); + (void) component; + Assert(component == 0, ExcIndexRange(component, 0, 1)); return 0; } @@ -219,7 +221,8 @@ namespace Step23 double RightHandSide::value (const Point &/*p*/, const unsigned int component) const { - Assert (component == 0, ExcInternalError()); + (void) component; + Assert(component == 0, ExcIndexRange(component, 0, 1)); return 0; } @@ -257,7 +260,8 @@ namespace Step23 double BoundaryValuesU::value (const Point &p, const unsigned int component) const { - Assert (component == 0, ExcInternalError()); + (void) component; + Assert(component == 0, ExcIndexRange(component, 0, 1)); if ((this->get_time() <= 0.5) && (p[0] < 0) && @@ -274,7 +278,8 @@ namespace Step23 double BoundaryValuesV::value (const Point &p, const unsigned int component) const { - Assert (component == 0, ExcInternalError()); + (void) component; + Assert(component == 0, ExcIndexRange(component, 0, 1)); if ((this->get_time() <= 0.5) && (p[0] < 0) &&