]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark a function as 'inline'. 17847/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 7 Nov 2024 03:23:50 +0000 (20:23 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 7 Nov 2024 14:47:29 +0000 (07:47 -0700)
This avoids compiler warnings in release mode that the function is
defined but not used. It is only used inside an assertion.

source/base/mpi.cc

index 8717598dd72c11d2743ed9e41347ad64a49217ff..4b5f7108823ed4025df82de54b19d1999fa970e6 100644 (file)
@@ -1182,7 +1182,7 @@ namespace Utilities
 
 
 
-        bool
+        inline bool
         FlexibleIndexStorage::entry_has_been_set(const std::size_t index) const
         {
           AssertIndexRange(index, size);

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.