mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-28 05:21:13 +00:00
62d6c33030
When casting between a pointer and an integer of a different size, GCC emits a warning (which is escalated to a build failure by -Werror). Indeed, if what you start with is a pointer, which you then cast to a shorter integer and then back again, you're going to cut off some bits of the pointer. But if you start with an integer (such as mach_port_t), then cast it to a longer pointer (void *), and then back to a shorter integer, you are fine. To keep GCC happy, cast through an intermediary uintptr_t, which is always the same size as a pointer. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230212111044.610942-4-bugaevc@gmail.com> |
||
---|---|---|
.. | ||
mach | ||
devstream.c | ||
err_boot.sub | ||
err_ipc.sub | ||
err_kern.sub | ||
err_mach.sub | ||
err_server.sub | ||
err_us.sub | ||
error_compat.c | ||
errorlib.h | ||
errstring.c | ||
errsystems.awk | ||
lock-intern.h | ||
lowlevellock.h | ||
mach_error.c | ||
mach_error.h | ||
mach_init.c | ||
mach_init.h | ||
mach.h | ||
Machrules | ||
Makefile | ||
mig_memcpy.c | ||
mig_strncpy.c | ||
mig-alloc.c | ||
mig-dealloc.c | ||
mig-reply.c | ||
msg-destroy.c | ||
msg.c | ||
msgserver.c | ||
mutex-init.c | ||
mutex-solid.c | ||
setup-thread.c | ||
shortcut.awk | ||
spin-lock.c | ||
spin-lock.h | ||
spin-solid.c | ||
stack_chk_fail_local.c | ||
syscalls.awk | ||
Versions |