From 73bcf7a308afaa003d5fb13099604604a48f8fc2 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 17 Apr 2015 14:52:07 +0200 Subject: [PATCH] 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. --- include/deal.II/numerics/vector_tools.templates.h | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.5