ports/java/openjdk11/files
Dimitry Andric d2ae63c6fe java/openjdk11: fix build with clang 19
Clang 19 is now more strict about undefined integral expressions used as
constants in enum, which results in errors compiling java/openjdk11,
similar to:

    /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.24-8-1/src/jdk.pack/share/native/common-unpack/constants.h:206:33: error: expression is not an integral constant expression
      206 |     AO_UNUSED_MBZ             = (-1)<<13, // options bits reserved for future use.
          |                                 ^~~~~~~~
    /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.24-8-1/src/jdk.pack/share/native/common-unpack/constants.h:206:37: note: left shift of negative value -1
      206 |     AO_UNUSED_MBZ             = (-1)<<13, // options bits reserved for future use.
          |                                     ^

Replace the negative value with ~0u to fix this error.

PR:		280560
Approved by:	glewis (maintainer)
MFH:		2024Q3
2024-08-07 18:44:21 +02:00
..
patch-configure Add a port of OpenJDK 11 2019-03-15 06:02:17 +00:00
patch-make_autoconf_libraries.m4
patch-make_lib_Awt2dLibraries.gmk java/openjdk11: Update to 11.0.13 2021-10-31 11:07:42 -07:00
patch-src_hotspot_os_bsd_os__bsd.cpp
patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c
patch-src_jdk.pack_share_native_common-unpack_constants.h java/openjdk11: fix build with clang 19 2024-08-07 18:44:21 +02:00