From 9119de3a643f8adf2c4a12587e32577caa762b5a Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Fri, 12 Aug 2022 16:10:21 +0200 Subject: Fix build with gcc/g++ --- src/buildtool/file_system/git_cas.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/buildtool/file_system/git_cas.cpp') diff --git a/src/buildtool/file_system/git_cas.cpp b/src/buildtool/file_system/git_cas.cpp index e24ab8ad..fcd56006 100644 --- a/src/buildtool/file_system/git_cas.cpp +++ b/src/buildtool/file_system/git_cas.cpp @@ -14,8 +14,8 @@ extern "C" { namespace { -constexpr auto kOIDRawSize{GIT_OID_RAWSZ}; -constexpr auto kOIDHexSize{GIT_OID_HEXSZ}; +constexpr std::size_t kOIDRawSize{GIT_OID_RAWSZ}; +constexpr std::size_t kOIDHexSize{GIT_OID_HEXSZ}; [[nodiscard]] auto GitLastError() noexcept -> std::string { git_error const* err{nullptr}; @@ -102,6 +102,8 @@ constexpr auto kOIDHexSize{GIT_OID_HEXSZ}; case ObjectType::Tree: return GIT_FILEMODE_TREE; } + + return GIT_FILEMODE_UNREADABLE; // make gcc happy } [[nodiscard]] auto GitTypeToObjectType(git_object_t const& type) noexcept -- cgit v1.2.3