RFR: 8275717: Reimplement STATIC_ASSERT to use static_assert

Stefan Karlsson stefank at openjdk.java.net
Mon Oct 25 09:11:06 UTC 2021


On Fri, 22 Oct 2021 15:39:32 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> The "unused typedef" warnings suggest a build with `-Wunused-local-typedefs` enabled. I thought we were not enabling that (because it's not actually useful), but don't see such disabling and it's enabled by `-Wall`. So why aren't we getting those warnings in any function where we use STATIC_ASSERT, for any gcc-based platform?

The failures were seen with clang. I haven't tried to dig deeper.

Thanks all for reviewing!

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

PR: https://git.openjdk.java.net/jdk/pull/6077


More information about the hotspot-dev mailing list