forked from Lainports/freebsd-ports
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
|
||
|---|---|---|
| .. | ||
| patch-configure | ||
| patch-make_autoconf_libraries.m4 | ||
| patch-make_lib_Awt2dLibraries.gmk | ||
| 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 | ||