diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-08-20 19:49:36 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2026-08-20 19:49:36 +0000 |
| commit | 01c0ddf44a770a152a01259fd150fc77d5caac26 (patch) | |
| tree | 6a5a198f85602e623420341ff63eb5e4f3726451 /lib/CodeGen/MachineFunctionPass.cpp | |
| parent | c4bca1f8830223766105af486ae70e78d67ae78a (diff) | |
exterr: Fix build with GCC on 32-bit architectures
Use an intermediate uintptr_t cast to avoid casting a uint64_t value
directly to void * on 32-bit platforms (including lib32 builds).
lib/libc/gen/uexterr_format.c: In function 'uexterr_format_msg':
lib/libc/gen/uexterr_format.c:248:35: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
248 | PFMT(fmt, (void *)ARG(nextarg));
| ^
lib/libc/gen/uexterr_format.c:144:47: note: in definition of macro 'PFMT'
144 | psz = snprintf(buf, bufsz, f, a); \
| ^
Reported by: GCC 15
Fixes: 2f024a7cfddd ("exterr: relax format restrictions")
Diffstat (limited to 'lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions
