git: 15a656ba9072 - main - java/openjdk19: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Aug 2023 23:40:39 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=15a656ba907277e6e0f1d536297f07dda28940af commit 15a656ba907277e6e0f1d536297f07dda28940af Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-07 18:47:30 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-07 22:00:19 +0000 java/openjdk19: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- java/openjdk19/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/openjdk19/Makefile b/java/openjdk19/Makefile index d14333c762a2..71450f026770 100644 --- a/java/openjdk19/Makefile +++ b/java/openjdk19/Makefile @@ -144,6 +144,9 @@ EXTRA_CFLAGS+= -Wno-unused-but-set-parameter .if ${COMPILER_VERSION} >= 140 EXTRA_CFLAGS+= -Wno-bitwise-instead-of-logical .endif +.if ${COMPILER_VERSION} >= 160 +EXTRA_CFLAGS+= -Wno-error=deprecated-non-prototype +.endif CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}" CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}" .endif