From: Wolfgang Bangerth Date: Thu, 7 Nov 2024 03:23:50 +0000 (-0700) Subject: Mark a function as 'inline'. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f83dfcbcb82a5bb34cb677229ba681cf4f48a10;p=dealii.git Mark a function as 'inline'. This avoids compiler warnings in release mode that the function is defined but not used. It is only used inside an assertion. --- diff --git a/source/base/mpi.cc b/source/base/mpi.cc index 8717598dd7..4b5f710882 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -1182,7 +1182,7 @@ namespace Utilities - bool + inline bool FlexibleIndexStorage::entry_has_been_set(const std::size_t index) const { AssertIndexRange(index, size);