]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdio: Fix -Wtautological-constant-out-of-range-compare on clang
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 3 Jan 2023 17:35:09 +0000 (14:35 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 9 Apr 2025 11:45:23 +0000 (08:45 -0300)
commit1ae9eb770c0102b005f063588102dd8437817235
tree97bf819843a86bf036b9d732baeee008aea7af83
parent54a1c7b88a838f20b2d1e8daa86eefd658615754
stdio: Fix -Wtautological-constant-out-of-range-compare on clang

clang emits an error while building vfprintf-internal for default
case:

error: result of comparison of constant 255 with expression of type
'char' is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
          if (spec <= UCHAR_MAX

The test is indeed not required for default non-wide build.
stdio-common/vfprintf-internal.c