From 3378cc494de65725a36e8ff5aaa205273521ba52 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 29 Aug 2024 09:46:12 +0200 Subject: java/openjdk8 java/openjdk11 java/openjdk17 java/openjdk18 java/openjdk19 java/openjdk20 java/openjdk21 java/openjdk22: disable warnings as errors Generally disable warnings-as-errors for all openjdk ports, removing all the conditionals we have now for particular architectures and/or compilers. It does not make sense to have this on by default, unless you are an upstream maintainer. PR: 281188 Approved by: maintainer timeout (2 weeks) MFH: 2024Q3 --- java/openjdk18/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'java/openjdk18') diff --git a/java/openjdk18/Makefile b/java/openjdk18/Makefile index cf09ffb96ab2..f2afc74762f9 100644 --- a/java/openjdk18/Makefile +++ b/java/openjdk18/Makefile @@ -141,6 +141,7 @@ JDK_BUILD_JVM= server MAKE_ENV+= --with-toolchain-type=${COMPILER_TYPE} CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE} +CONFIGURE_ARGS+= --disable-warnings-as-errors .if ${COMPILER_TYPE} == gcc USE_GCC= yes @@ -156,9 +157,6 @@ CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}" CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}" .endif -.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*} -CONFIGURE_ARGS+= --disable-warnings-as-errors -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers --disable-dtrace MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" -- cgit v1.2.3