Integrated: 8312190: Fix c++11-narrowing warnings in hotspot code
Daniel Jeliński
djelinski at openjdk.org
Wed Jul 19 07:52:50 UTC 2023
On Mon, 17 Jul 2023 18:31:41 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
> This patch fixes compilation warnings produced by Clang when compiling on Windows.
>
> Clang emulates MSVC behavior and uses `int` for enumeration types that do not explicitly specify the underlying type. This patch sets an explicit underlying type for 3 enumerations to fix the warnings.
>
> See Microsoft's documentation of [Zc:enumTypes](https://learn.microsoft.com/en-us/cpp/build/reference/zc-enumtypes?view=msvc-170) for more information.
This pull request has now been integrated.
Changeset: f677793d
Author: Daniel Jeliński <djelinski at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f677793d02a7aa5d01c06023000762b12b8cee91
Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 mod
8312190: Fix c++11-narrowing warnings in hotspot code
Reviewed-by: dholmes, kbarrett
-------------
PR: https://git.openjdk.org/jdk/pull/14907
More information about the hotspot-dev
mailing list