]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid compiler warning.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 Feb 2000 13:24:29 +0000 (13:24 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 Feb 2000 13:24:29 +0000 (13:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@2492 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/data_out.cc

index 55a14aeb3915df286a15a3b263365de9850ad14e..6f4999b57ef19945ae2d57b2170959cae57ed157 100644 (file)
@@ -238,6 +238,10 @@ void DataOut<dim>::build_patches (const unsigned int n_subdivisions,
 #ifdef DEAL_II_USE_MT
   const unsigned int n_threads = n_threads_;
 #else
+                                  // access this variable to avoid
+                                  // compiler warning about unused
+                                  // var:
+  (void)n_threads_;
   const unsigned int n_threads = 1;
 #endif
 

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.