[PATCH] linux: Fix integer overflow warnings when including <sys/mount.h> [BZ #32708]
Carlos O'Donell
carlos@redhat.com
Wed Mar 26 03:58:13 GMT 2025
On 3/25/25 5:32 PM, Florian Weimer wrote:
> * Carlos O'Donell:
>
>> - 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 tend to agree for <sys/mount.h>. In things like <math.h>, we should
> aim for stricter conformance, but here it is okay.
Absolutely, for <math.h> I think we need to be much more cautious.
Given that I see consensus from you and Collin I've pushed the changed.
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list