summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-08-23 16:53:10 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-08-23 16:53:10 +0200
commitff62463cc2ead9c153305fbb7bbce3d18c90ddf9 (patch)
tree88b3f14065081996a0684a95a6f6dd8059715508
parentbb2ebec791257a8f589ee527a66fdd7c6912a795 (diff)
downloadjustbuild-ff62463cc2ead9c153305fbb7bbce3d18c90ddf9.tar.gz
utils path: Add missing inline specifier
... to suppress 'unused function' warnings.
-rw-r--r--src/utils/cpp/path.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/cpp/path.hpp b/src/utils/cpp/path.hpp
index bbbbfbf6..f9b937a1 100644
--- a/src/utils/cpp/path.hpp
+++ b/src/utils/cpp/path.hpp
@@ -33,7 +33,7 @@
/// \brief Perform a non-upwards condition check on the given path.
/// A path is non-upwards if it is relative and it never references any other
/// path on a higher level in the directory tree than itself.
-[[nodiscard]] static auto PathIsNonUpwards(
+[[nodiscard]] static inline auto PathIsNonUpwards(
std::filesystem::path const& path) noexcept -> bool {
if (path.is_absolute()) {
return false;
@@ -48,7 +48,7 @@
/// This models the situation when a symlink is being resolved inside a tree.
/// NOTE: No explicit check is done whether applied_to is actually a relative
/// path, as this is implicit by the non-upwardness condition.
-[[nodiscard]] static auto PathIsConfined(
+[[nodiscard]] static inline auto PathIsConfined(
std::filesystem::path const& path,
std::filesystem::path const& applied_to) noexcept -> bool {
if (path.is_absolute()) {