]> git.ipfire.org Git - thirdparty/glibc.git/commit
benchtests: Remove clang warnings
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 6 Feb 2024 19:52:17 +0000 (16:52 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 9 Apr 2025 16:36:16 +0000 (13:36 -0300)
commit7a328725a510c3957c70b2d576e487e934061414
treedda7e27447bc608754a4932292242dd7f23107b0
parent60055b4d2639291ffce8020b3eb8450a1e359742
benchtests: Remove clang warnings

clangs warns of the implicit cast of RAND_MAX to float:

  error: implicit conversion from 'int' to 'float' changes value from
  2147483647 to 2147483648 [-Werror,-Wimplicit-const-int-float-conversion]

So make it explicit.
benchtests/bench-malloc-thread.c
benchtests/bench-strchr.c