From nobody Sun Dec 18 17:43:54 2022 X-Original-To: dev-commits-ports-main@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 4NZqvZ6CgXz1GmVx; Sun, 18 Dec 2022 17:43:54 +0000 (UTC) (envelope-from git@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 4NZqvZ5d0Mz4JWc; Sun, 18 Dec 2022 17:43:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385434; 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; bh=G0Gorvhw1Py6qTBObAWh538M6HtrRShhEfX2a1XDHdE=; b=J34QLVazph55z3zb/synWrR6ijMNItYmKlr6MMXUaOs5fxuYI8+g/ahEPQ+XWxUMQQrmwl ROa/I2w2Oej1IvT/8Cxu0BJ0pOfFltLWL+ZgTLPxUYWxdiGCwxUp0+0fihcFaM0KZYZCU8 w0YueKF1YbpghYVyUHgBzIMzQp5ya+7kxSX7ROogycBCQHDVgpwMwYnnWrNg8oPK1hjM4y l8gZ/wiYNk5FTe64e7LA1wWrKQdrypSat1knVdhGTujZ2FoI9xfpdi5oev/dU6g1nXR2iP /Agx47h75A4fmKcfEzk1RqV9VA/x/HGC2AyCodIyyAyQnmf9CtV8dxLSlwcA7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385434; 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; bh=G0Gorvhw1Py6qTBObAWh538M6HtrRShhEfX2a1XDHdE=; b=hxk5GSPqdNHVi5amUhU9YQS/WCuhP2XBaKpttJOU6yEGiI0s7EMAxGBIAHde6ByVD3XqTU d+lgrix3cveeTeBP+KYjlzDL7WT95IGGkZbuMuERXJPw3kAJ5JloSgiHU5GW8SFHIhvpNq s7/OvxHgPFuG+UdggsS05/UFMLAYwUzHniz5psq20jEqEi9BresPuIEZB6v7tbHTyEgcZo 4mnIq155u0oOMBHzNXqO55elFV0Xs8KPvCZKnaHvf0y83GQn28IuO44yLLytDmfeBBWX1d PSI+904KIOb6f31zoJyWrEPKHvoVKwAt3uSARZDqiTnh8Q+qkK+Ddy2+UTrANg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385434; a=rsa-sha256; cv=none; b=hPgBdpx6OVApoi4FCAbljp+I0yVxUApbuGFmMqdhDU9EjesD3yCV1BRr4q7VVjWTjlug9K aO6VSBrGKGU8CieeqIiv2opqmVRJshOgoP+D/uzp35GYXebqQy9Cp+fQSRVmZTo0C1DNi7 Guhwvs/cTMvkatv4Yk/GRJsnPRHbSKR/zFT/qxeN6C/lB19wf8kLstThlLlm6l+Wu9Ilui BOFSNkvEtTSVM6TRiKUXKl4FYf2wyukMKiUgKSCdRudeontJm4OWizhYgVujg6Jmj9WidS PRqpx9ErxxzzsQugoX2+lYrvvppHpoGZGDkPO7tkXm5BPRgpUt0DBb3NMPwPhw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4NZqvZ4k5MzPcZ; Sun, 18 Dec 2022 17:43:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BIHhsB0006543; Sun, 18 Dec 2022 17:43:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BIHhskL006542; Sun, 18 Dec 2022 17:43:54 GMT (envelope-from git) Date: Sun, 18 Dec 2022 17:43:54 GMT Message-Id: <202212181743.2BIHhskL006542@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 4d093f4f688f - main - java/openjdk17: fix build with clang 15 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4d093f4f688f247642423498be93375d54a2a7fd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=4d093f4f688f247642423498be93375d54a2a7fd 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: /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-prototype] proxies = (*g_proxy_resolver_lookup)(resolver, uri, NULL, &error); ^ /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-prototype] (*g_network_address_parse_uri)(proxies[i], 0, ^ /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-prototype] phost = (*g_network_address_get_hostname)(conn); ^ /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-prototype] pport = (*g_network_address_get_port)(conn); ^ /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-prototype] (*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(+) diff --git a/java/openjdk17/Makefile b/java/openjdk17/Makefile index fc766bdd9b06..de5545c86a20 100644 --- a/java/openjdk17/Makefile +++ b/java/openjdk17/Makefile @@ -145,6 +145,9 @@ EXTRA_CFLAGS+= -Wno-unused-but-set-parameter .if ${COMPILER_VERSION} >= 140 EXTRA_CFLAGS+= -Wno-bitwise-instead-of-logical .endif +.if ${COMPILER_VERSION} >= 150 +EXTRA_CFLAGS+= -Wno-deprecated-non-prototype +.endif CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}" CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}" .endif