[PATCH 23/59] posix: Defined _POSIX_VDISABLE as integer literal
Collin Funk
collin.funk1@gmail.com
Fri Oct 17 20:15:07 GMT 2025
Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> The constant should be used with c_cc, which for all supported ABIs
> is defined as unsigned char. By using it as literar char constant,
> clang triggers an error when compared with signal literal o ABIs that
> define 'char' as unsigned.
>
> On aarch64, clang shows:
>
> ../sysdeps/posix/fpathconf.c:118:21: error: right side of operator
> converted from negative value to unsigned: -1 to 18446744073709551615
> [-Werror]
> #if _POSIX_VDISABLE == -1
> ~~~~~~~~~~~~~~~ ^ ~~
> ---
> sysdeps/mach/hurd/bits/posix_opt.h | 2 +-
> sysdeps/unix/sysv/linux/bits/posix_opt.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Looks good.
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
Collin
More information about the Libc-alpha
mailing list