From nobody Sun Dec 18 17:44:22 2022 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZqw70RRLz1GmWS for ; Sun, 18 Dec 2022 17:44:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZqw64lpSz4JsJ for ; Sun, 18 Dec 2022 17:44:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5gLjZoa3La3P5VGyX27h+thuVA72Gitg9HoJEUhk9DU=; b=UzcaAkC4yKr0pZrGtNjQ2xbBWszBuXx++P6pdG0ik+MAsqgEgMKUJLRBiNEUXNt8kpBH9P 1IDAgvGSiQFmoyjrjsyIOCAJUF+EpQelnbPQcX4v/6rzxY/eajKMWcCPURiM8Ln5eGp1tw QI90tFCQYu3cB6ItO0ytizdSsyep0OTz9UtmE1zhbLmdaDLB7zK7sFVFPeZxnObUeDMv5L F/Yj3Q/K1iO/wUmN+faKQsshKyVGBcN6ZXc5QPEmoOggwpV/HOcqkQMg94/6WGRCKfg7Dd b2TSaRXrbA8Clhu3kVA1gHwbZEysi1WBnfHF+qwHIz2NLWXQEbzC8hRvUmApTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385462; a=rsa-sha256; cv=none; b=tY9VAoCU5eGfcSqWTg3OGfh8+Rpp8r6oYv9asmaoT/yDQRm4yQrp78Qv8RzJCQsfDX3pdU XzvQYv8OjXb08Fmi8d/xnKLI8ObZt6cSUjLcsVBg7XjJzcKSpbReJ5Zseyl9G6cF7Qm1eH l3x4lUN+t/3mtUTD3HJ1IRNvTDcFUqcGZqnm/ggJPQ5eUdXNLy8sksXHhgYBvnh+YGWW3h R2o0s4Dfk+JpmGOrVr339pI+WkxN0Y7+GvEeqv4uKY2pgtUZq/kTMWtCZ1wzqKLjZtSl6F ZZ3ut8hlrF5E9VH2OZX4pIHPHdmb3KA64k0KfAelQYTUuThcyWym4kaW820xRQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZqw63dMVzPfm for ; Sun, 18 Dec 2022 17:44:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BIHiMHd004761 for ; Sun, 18 Dec 2022 17:44:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BIHiMqN004760 for java@FreeBSD.org; Sun, 18 Dec 2022 17:44:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 268366] java/openjdk17: fix build with clang 15 Date: Sun, 18 Dec 2022 17:44:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268366 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D4d093f4f688f247642423498be93375= d54a2a7fd commit 4d093f4f688f247642423498be93375d54a2a7fd Author: Dimitry Andric AuthorDate: 2022-12-14 12:43:35 +0000 Commit: Dimitry Andric CommitDate: 2022-12-18 17:36:27 +0000 java/openjdk17: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that java/openjdk17 failed to build with clang 15: =20=20=20=20=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, &erro= r); ^ =20=20=20=20=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] =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/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=20=20=20=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)(c= onn); ^ =20=20=20=20=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. PR: 268366 Approved by: portmgr (tcberner) MFH: 2022Q4 java/openjdk17/Makefile | 3 +++ 1 file changed, 3 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=