]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence a warning emitted by clang-3.6 845/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Mon, 20 Apr 2015 08:50:27 +0000 (10:50 +0200)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Mon, 20 Apr 2015 08:50:27 +0000 (10:50 +0200)
source/grid/grid_refinement.cc

index 8d987eca95612751210a2e94cc6e5846e51ad5fd..ad8da22f615976c484ed67557e59fb7fc4b7290b 100644 (file)
@@ -50,7 +50,6 @@ namespace
     }
 
 
-
     template <typename number>
     inline
     number
@@ -59,6 +58,9 @@ namespace
       return *std::min_element(criteria.begin(), criteria.end());
     }
 
+    // Silence a (bogus) warning in clang-3.6 about the following four
+    // functions being unused:
+    DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 
 #ifdef DEAL_II_WITH_PETSC
     inline
@@ -110,7 +112,10 @@ namespace
       return m;
     }
 #endif
-  }
+
+    DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
+
+  } /* namespace internal */
 
 
   template <typename Vector>

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.