diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 679daf6fb5..57588c68e0 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -11,7 +11,7 @@ ;;; Copyright © 2018 Chris Marusich ;;; Copyright © 2018-2024 Efraim Flashner ;;; Copyright © 2019, 2020, 2021 Björn Höfling -;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen +;;; Copyright © 2020, 2025 Janneke Nieuwenhuizen ;;; Copyright © 2020 Raghav Gururajan ;;; Copyright © 2020, 2022 Maxim Cournoyer ;;; Copyright © 2021 Vincent Legoll @@ -232,7 +232,12 @@ (define-public icedtea-7 (lambda _ (substitute* "openjdk.src/jdk/make/common/Defs-linux.gmk" (("CFLAGS_COMMON = -fno-strict-aliasing" all) - (string-append all " -fcommon"))) + (string-append all + " -fcommon" + " -Wno-error=implicit-function-declaration" + " -Wno-error=implicit-int" + " -Wno-error=incompatible-pointer-types" + " -Wno-error=int-conversion"))) (substitute* '("openjdk.src/jdk/src/solaris/native/java/net/PlainSocketImpl.c" "openjdk.src/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c")