Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2022 12:49:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 268366] java/openjdk17: fix build with clang 15
Message-ID:  <bug-268366-8522-TrPkGNy21k@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268366-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268366-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-java (Nobody)
<java@FreeBSD.org> for maintainer-feedback:
Bug 268366: java/openjdk17: fix build with clang 15
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268366



--- Description ---
During an exp-run for llvm 15 (see bug 265425), it turned out that
java/openjdk17 failed to build with clang 15:

=20
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-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, &error);
					  ^
=20
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-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]
				  (*g_network_address_parse_uri)(proxies[i], 0,
								^
=20
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-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
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-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)(conn);
								   ^
=20
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268366-8522-TrPkGNy21k>