From: Matthias Maier Date: Fri, 17 Apr 2015 12:52:07 +0000 (+0200) Subject: Silence a false positive "-Wunneeded-internal-declaration" X-Git-Tag: v8.3.0-rc1~255^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F824%2Fhead;p=dealii.git Silence a false positive "-Wunneeded-internal-declaration" Clang inlines ```constraints_and_b_v_are_compatible``` into ```do_project``` and after that emits a wrong warning about the former not being used. Explicitly annotating ```constraints_and_b_v_are_compatible``` with inline helps. --- diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index a81d5f928e..919cd6db2e 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -700,6 +700,7 @@ namespace VectorTools * Return whether the boundary values try to constrain a degree of freedom * that is already constrained to something else */ + inline bool constraints_and_b_v_are_compatible (const ConstraintMatrix &constraints, std::map &boundary_values) {