diff --git a/support/3rd_party/src/utils/file.cpp b/support/3rd_party/src/utils/file.cpp index 6c8b242b..715b17cc 100644 --- a/support/3rd_party/src/utils/file.cpp +++ b/support/3rd_party/src/utils/file.cpp @@ -89,7 +89,7 @@ auto file::move_to(std::filesystem::path new_path) -> bool { auto file::read(unsigned char *data, std::size_t to_read, std::uint64_t offset, std::size_t *total_read) -> bool { - static static constexpr const std::string_view function_name{ + static constexpr const std::string_view function_name{ static_cast(__FUNCTION__), }; @@ -148,7 +148,7 @@ auto file::truncate(std::size_t size) -> bool { auto file::write(const typename data_buffer::value_type *data, std::size_t to_write, std::size_t offset, std::size_t *total_written) -> bool { - static static constexpr const std::string_view function_name{ + static constexpr const std::string_view function_name{ static_cast(__FUNCTION__), }; @@ -249,7 +249,7 @@ auto read_json_file(std::string_view path, nlohmann::json &data, #else // !defined(PROJECT_ENABLE_LIBSODIUM) auto read_json_file(std::string_view path, nlohmann::json &data) -> bool { #endif // defined(PROJECT_ENABLE_LIBSODIUM) - static static constexpr const std::string_view function_name{ + static constexpr const std::string_view function_name{ static_cast(__FUNCTION__), }; @@ -305,7 +305,7 @@ auto write_json_file(std::string_view path, const nlohmann::json &data, auto write_json_file(std::string_view path, const nlohmann::json &data) -> bool { #endif // defined(PROJECT_ENABLE_LIBSODIUM) - static static constexpr const std::string_view function_name{ + static constexpr const std::string_view function_name{ static_cast(__FUNCTION__), }; diff --git a/support/3rd_party/src/utils/unix.cpp b/support/3rd_party/src/utils/unix.cpp index da246d99..cc98f146 100644 --- a/support/3rd_party/src/utils/unix.cpp +++ b/support/3rd_party/src/utils/unix.cpp @@ -56,7 +56,7 @@ auto is_uid_member_of_group(const uid_t &uid, const gid_t &gid) -> bool { } auto use_getpwuid(uid_t uid, passwd_callback_t callback) -> result { - static static constexpr const std::string_view function_name{ + static constexpr const std::string_view function_name{ static_cast(__FUNCTION__), };