Integrated: 8330524: Linux ppc64le compile warning with clang in os_linux_ppc.cpp

Matthias Baesken mbaesken at openjdk.org
Fri Apr 19 10:06:07 UTC 2024


On Wed, 17 Apr 2024 15:04:03 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> When building with clang on Linux ppc64le, we run into this warning as error :
> 
> /open_jdk/jdk_test/jdk/src/hotspot/os_cpu/linux_ppc/os_linux_ppc.cpp:257:17: error: converting the result of '?:' with integer constants to a boolean always evaluates to 'true' [-Werror,-Wtautological-constant-compare]
>       else if ((sig == USE_POLL_BIT_ONLY ? SIGTRAP : SIGSEGV) &&
>                 ^
> 1 error generated.

This pull request has now been integrated.

Changeset: 252c62a6
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/252c62a66dd955a5d22f307544f38cc0dd4f2550
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8330524: Linux ppc64le compile warning with clang  in os_linux_ppc.cpp

Reviewed-by: mdoerr, clanger

-------------

PR: https://git.openjdk.org/jdk/pull/18818


More information about the hotspot-runtime-dev mailing list