]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix unused variable warnings in step-47 4068/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 15 Mar 2017 19:08:18 +0000 (14:08 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 15 Mar 2017 19:17:00 +0000 (14:17 -0500)
examples/step-47/step-47.cc

index 98cd5b4f073d3aa92d4441229f8976222f8ff019..74b6cdeae8eb202701b6fd26c255cf7ae9bc0a58 100644 (file)
@@ -152,8 +152,8 @@ namespace Step47
     Assert (values.size() == n_points,
             ExcDimensionMismatch (values.size(), n_points));
 
-    Assert (component == 0,
-            ExcIndexRange (component, 0, 1));
+    (void) component;
+    Assert(component == 0, ExcIndexRange(component, 0, 1));
 
     for (unsigned int i=0; i<n_points; ++i)
       {

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.