[PATCH] linux: Fix integer overflow warnings when including <sys/mount.h> [BZ #32708]

Collin Funk collin.funk1@gmail.com
Tue Mar 25 20:42:23 GMT 2025


Carlos O'Donell <carlos@redhat.com> writes:

> - I still think using "1U << 31" is the clearest possible solution and
>   follows established precedent. You need a compiler that supports
>   unsigned enums and the full representable range to compile code in
>   the ecosystem.

I agree, especially since you found the usage in other places like
<sys/epoll.h> and no one has had a problem with it, as far as I can
tell.

Thanks all,
Collin


More information about the Libc-alpha mailing list