]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence a false positive "-Wunneeded-internal-declaration" 824/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Fri, 17 Apr 2015 12:52:07 +0000 (14:52 +0200)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Fri, 17 Apr 2015 12:52:07 +0000 (14:52 +0200)
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

index a81d5f928ec22818ee495e30d1e39c38f3873f58..919cd6db2ecfca5e85dfba4454a6e3b589f58486 100644 (file)
@@ -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<types::global_dof_index,double> &boundary_values)
     {

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.