From: Matthias Maier Date: Mon, 20 Apr 2015 08:50:27 +0000 (+0200) Subject: Silence a warning emitted by clang-3.6 X-Git-Tag: v8.3.0-rc1~235^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F845%2Fhead;p=dealii.git Silence a warning emitted by clang-3.6 --- diff --git a/source/grid/grid_refinement.cc b/source/grid/grid_refinement.cc index 8d987eca95..ad8da22f61 100644 --- a/source/grid/grid_refinement.cc +++ b/source/grid/grid_refinement.cc @@ -50,7 +50,6 @@ namespace } - template 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