diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2024-12-16 13:39:36 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2024-12-19 16:17:46 +0100 |
commit | e2b6d9d3c41d162517019ee0bf9147e398a5b1fa (patch) | |
tree | 248f0a50ec1183836a8257580779cac79ccf51f5 /src/other_tools/utils | |
parent | 827f05a53cb831bd54166ee812752ae3cce2b69b (diff) | |
download | justbuild-e2b6d9d3c41d162517019ee0bf9147e398a5b1fa.tar.gz |
Fix cause of minor warnings
Diffstat (limited to 'src/other_tools/utils')
-rw-r--r-- | src/other_tools/utils/content.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/other_tools/utils/content.hpp b/src/other_tools/utils/content.hpp index a644f5bd..6d42e060 100644 --- a/src/other_tools/utils/content.hpp +++ b/src/other_tools/utils/content.hpp @@ -33,8 +33,8 @@ /// \brief Fetches a file from the internet and stores its content in memory. /// \returns the content. -[[nodiscard]] static auto NetworkFetch(std::string const& fetch_url, - CAInfoPtr const& ca_info) noexcept +[[nodiscard]] static inline auto NetworkFetch(std::string const& fetch_url, + CAInfoPtr const& ca_info) noexcept -> std::optional<std::string> { auto curl_handle = CurlEasyHandle::Create( ca_info->no_ssl_verify, ca_info->ca_bundle, LogLevel::Debug); @@ -47,7 +47,7 @@ /// \brief Fetches a file from the internet and stores its content in memory. /// Tries not only a given remote, but also all associated remote locations. /// \returns The fetched data on success or an unexpected error as string. -[[nodiscard]] static auto NetworkFetchWithMirrors( +[[nodiscard]] static inline auto NetworkFetchWithMirrors( std::string const& fetch_url, std::vector<std::string> const& mirrors, CAInfoPtr const& ca_info, @@ -89,8 +89,8 @@ } template <Hasher::HashType kType> -[[nodiscard]] static auto GetContentHash(std::string const& data) noexcept - -> std::string { +[[nodiscard]] static inline auto GetContentHash( + std::string const& data) noexcept -> std::string { auto hasher = Hasher::Create(kType); hasher->Update(data); auto digest = std::move(*hasher).Finalize(); |