From nobody Sun Dec 18 17:44:21 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 4NZqw60KS5z1GmWQ for ; Sun, 18 Dec 2022 17:44:22 +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 4NZqw559QVz4Jqq for ; Sun, 18 Dec 2022 17:44:21 +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=1671385461; 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=guEWNpZ9DR5BH78UfEXR0dNYn5ruzIesALlkaExpWds=; b=Tr6Nba0z8VQnU5EpXQwTWLIqgrj47sCw+Ez40EBB7H1zMO/dGsEPAC0WTqfOIKtPriPQgz JtNiKaskMFr5UX3uLK/kxC753R7I69hH/i8/RMJEzL3eU77llNpC79SymFX5y8xuoLbpnp uOEZ+5LCUqgYgQyo/gpW5TbCUY0PKcBQRRznJs/buPVi8PPMwdpkK96jHz2yQTOdoXEpk6 JDMHeT/IVWRNIdNmotWOfDsGcEGTzzyWbIyAcP+wOrOtwDjKlC5V+/1avKJ5TQm3YZl3Bq k6zHAyeV46osqlnmqxWsgAgtu/GEKe4yR58ThVf5Y9ZyEs+z/UzOJi+WHhFhxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385461; a=rsa-sha256; cv=none; b=Dc7vC4I/MI7Ulbq4qQOnS/qcWdEKW2reFLyZblBbCu9lFneWzKg/PwjgFFvshmd7u50Rj0 3qUTV8LwnbkrnJ5dLHPfCc6aHs9yqZwYa/2SiHH6QQXZV6ZDZXHJYQ/Ms7mPRd5Ifj6Urd ltb0aVpVHYTW5GPPnH/9uWVo87dHhMu9lI542IUzY4oTEGZvxxZad3nN4Kr9cdJKkIUWIB 76aQI9gxCUpjR23vx4gZJYgzGDaNLBJduqNXxarpP2dR2twJclD0PUZyVOqXsQOgOHf0Ib 26mF/6+iAnLGdnkYXxXEJyIrWM/OSEQdsxtwZFx3WdvjvpwoIN0uvPU35LhSKw== 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 4NZqw54Bf5zPtZ for ; Sun, 18 Dec 2022 17:44:21 +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 2BIHiL4d004744 for ; Sun, 18 Dec 2022 17:44:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BIHiLx6004743 for java@FreeBSD.org; Sun, 18 Dec 2022 17:44:21 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 268373] java/openjdk18: fix build with clang 15 Date: Sun, 18 Dec 2022 17:44:21 +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: New 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=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 AuthorDate: 2022-12-14 14:05:44 +0000 Commit: Dimitry Andric 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.=