1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-11-05 08:10:46 +03:00
Files
glibc/support/support_process_state.c
Adhemerval Zanella b0eb01ef48 support: Use CHAR_MAX as maximum value
On ABIs with defined 'char' was unsigned type, clang fails to build
support_process_state.c with:

  support_process_state.c:70:21: error: result of comparison of constant  -1 with expression of type 'char' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
     70 |       if (cur_state == -1)
        |           ~~~~~~~~~ ^  ~~
  1 error generated.

Reviewed-by: Sam James <sam@gentoo.org>
2025-10-21 09:24:29 -03:00

2.9 KiB