Sorry I don't have time to dig into it now:
/pobj/libgit2-1.9.4/libgit2-1.9.4/src/util/array.h:55:35: error: incompatible
pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type
'unsigned int *' [-Wincompatible-pointer-types]
55 | if (GIT_MULTIPLY_SIZET_OVERFLOW(&new_size, *asize, 3))
| ^~~~~~~~~
/pobj/libgit2-1.9.4/libgit2-1.9.4/src/util/git2_util.h:146:32: note: expanded
from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
146 | (git__multiply_sizet_overflow(out, nelem, elsize) ?
(git_error_set_oom(), 1) : 0)
| ^~~
/pobj/libgit2-1.9.4/libgit2-1.9.4/src/util/integer.h:60:40: note: expanded from
macro 'git__multiply_sizet_overflow'
60 | __builtin_umul_overflow(one, two, out)
| ^~~
1 error generated.