mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08: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> |
||
---|---|---|
.. | ||
fd.h | ||
id.h | ||
ioctl.h | ||
lookup.h | ||
port.h | ||
resource.h | ||
signal.h | ||
sigpreempt.h | ||
threadvar.h | ||
userlink.h | ||
xattr.h |