Integrated: 8330520: linux clang build fails in os_linux.cpp with static_assert with no message is a C++17 extension
Matthias Baesken
mbaesken at openjdk.org
Thu Apr 18 10:06:07 UTC 2024
On Wed, 17 Apr 2024 14:35:56 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> We run into the following build error when compiling on Linux ppc64le with the clang toolchain
>
>
> jdk/src/hotspot/os/linux/os_linux.cpp:2975:65: error: 'static_assert' with no message is a C++17 extension [-Werror,-Wc++17-extensions]
> static_assert(MADV_POPULATE_WRITE == MADV_POPULATE_WRITE_value);
>
>
> Currently it is not clear when "8314488: Compile the JDK as C++17" will be in the codebase so better fix the static_assert .
This pull request has now been integrated.
Changeset: 4b55fe57
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4b55fe577701317e6570f045ed9fe28aa97fc7ea
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
8330520: linux clang build fails in os_linux.cpp with static_assert with no message is a C++17 extension
Reviewed-by: stefank, mdoerr
-------------
PR: https://git.openjdk.org/jdk/pull/18816
More information about the hotspot-runtime-dev
mailing list