From ff62463cc2ead9c153305fbb7bbce3d18c90ddf9 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 23 Aug 2023 16:53:10 +0200 Subject: utils path: Add missing inline specifier ... to suppress 'unused function' warnings. --- src/utils/cpp/path.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/cpp/path.hpp') 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()) { -- cgit v1.2.3