From: Matthias Maier Date: Wed, 15 Mar 2017 19:07:13 +0000 (-0500) Subject: Fix unused variable warnings in step-9 X-Git-Tag: v8.5.0-rc1~38^2~7 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b83c733b7255264e99b3a3ebe07e073260641e85;p=dealii.git Fix unused variable warnings in step-9 --- diff --git a/examples/step-9/step-9.cc b/examples/step-9/step-9.cc index 1a9c9f0cd4..87e256ec6f 100644 --- a/examples/step-9/step-9.cc +++ b/examples/step-9/step-9.cc @@ -327,6 +327,7 @@ namespace Step9 RightHandSide::value (const Point &p, const unsigned int component) const { + (void) component; Assert (component == 0, ExcIndexRange (component, 0, 1)); const double diameter = 0.1; return ( (p-center_point).norm_square() < diameter*diameter ? @@ -374,6 +375,7 @@ namespace Step9 BoundaryValues::value (const Point &p, const unsigned int component) const { + (void) component; Assert (component == 0, ExcIndexRange (component, 0, 1)); const double sine_term = std::sin(16*numbers::PI*std::sqrt(p.norm_square()));