Index | Thread | Search

From:
Antoine Jacoutot <ajacoutot@bsdfrog.org>
Subject:
Re: libgit2 incompatible ptr types, llvm22 i386
To:
ports <ports@openbsd.org>
Date:
Sat, 30 May 2026 17:46:37 +0200

Download raw body.

Thread
On Sat, May 30, 2026 at 04:11:21PM +0100, Stuart Henderson wrote:
> 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.

Fixed.

-- 
Antoine