Date: Sun, 18 Dec 2022 17:44:21 +0000 From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 268373] java/openjdk18: fix build with clang 15 Message-ID: <bug-268373-8522-hXix13FeWD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-268373-8522@https.bugs.freebsd.org/bugzilla/> References: <bug-268373-8522@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268373 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D430ead7025c8f32aa67b6c8d99583bb= b68969dbb commit 430ead7025c8f32aa67b6c8d99583bbb68969dbb Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-12-14 14:05:44 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-12-18 17:37:49 +0000 java/openjdk18: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that java/openjdk18 failed to build with clang 15: =20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:374:41: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] proxies =3D (*g_proxy_resolver_lookup)(resolver, uri, NULL, &erro= r); ^ =20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:393:63: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 (*g_network_address_parse_uri)(proxies[i], 0, ^ =20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:398:70: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] phost =3D (*g_network_address_get_hostname)(conn); ^ =20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:399:66: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] pport =3D (*g_network_address_get_port)(c= onn); ^ =20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk18/work/jdk18u-jdk-18.0.2-9-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:435:22: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] (*g_strfreev)(proxies); ^ This is because clang 15 warns by default about functions without arguments in their prototypes. Fix this by suppressing the warning. PR: 268373 Approved by: portmgr (tcberner) MFH: 2022Q4 java/openjdk18/Makefile | 3 +++ 1 file changed, 3 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268373-8522-hXix13FeWD>