]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a warning about an unused variable
authorJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 10 May 2019 20:31:40 +0000 (22:31 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Fri, 10 May 2019 20:37:24 +0000 (22:37 +0200)
source/differentiation/ad/ad_helpers.cc

index fac44b98a5bdfe691e874fdd1bc61a82fd653368..948f00ba2f4cbdf67a20e42b12a91aa51df30cad 100644 (file)
@@ -459,6 +459,7 @@ namespace Differentiation
             // duration of the simulation, we create a global live variable
             // that doesn't go out of scope.
             static ad_type num = 0.0;
+            (void)num;
           }
     }
 

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.