From nobody Mon Jan 16 19:05:23 2023 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 4NwhLD1Y16z2t6VW; Mon, 16 Jan 2023 19:05:24 +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 4NwhLD0YdZz3nbK; Mon, 16 Jan 2023 19:05:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673895924; 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=Md2+yUidJF0rYImDhtuuYDsJjbGvU46wMQ8CtsQhgeQ=; b=nm83F2aOACbjF+12VssrzN/fbTTsCrAdAo/16d6yfkAtJA8upEBDiA0FJG0Yo4MDTunqA6 fufnOz206JYkiS8wBML+gc2OmGH3BhyKZTJVLJtklOOBhigtnri9J62Oxm7qkJDH32D2Ej TQo3zlBBfQas8eDFh1FMtvPBqhRd7gb/NDYxTzE44dU0X9Jaf9P0IKNLDGOB1mgZs5+rbS PAZmFgXfwcS/1TUXUqC/hpCRtH0llxqDxUxXqdZLYCh0Avd0GV2SS/pwugKK+2XHrRESJ9 LP68G81ru9E+ZPgz3zaE5x64EL9JlQ1DG3CnbBVzS8q5dDc5pYFg4mm5s8cVrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673895924; 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=Md2+yUidJF0rYImDhtuuYDsJjbGvU46wMQ8CtsQhgeQ=; b=Av++GRQHb+oCtyTzZjVuduiLVHjRtm9EPQbECJpD+2C3CqHrHJFEhyx93vY/TswDgdJkJw KfsFmFKINXEKrkwLFmN6+VrA1L9q2mOHOQYo0MfDWZc5diW7FuQxLH4qsZnXQIG+ZFR3nJ jH7VN3qxaEyQgWNhBVGk/6qguHsWMs4z7F+ChhknDiUKhJBToHq5dB2MbLS7AG3qtnbcGM bKWO3n0CABo1qPqoit6K9KAqdRNC6DExz4xzz5q/Uon7pjdKAZmECikEqAo25pGmAPYxlD ZGPGlJNTL95Gf6f+4fXrZUbxG5+S9uk0DDm6DsRwdTd3ELqSrGXVe1lFmsFf2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673895924; a=rsa-sha256; cv=none; b=RFsqKhsCJUkzXW+i3Dut3mUPbSdID1NAEhMJ6pBFkC+mzt7zH7WY9yIaZJIjGckL/c/MA3 JXPJ19C960eKp9aOLixDkZLh7X0GZxTyIwddb8odQkqswfqCZv2dJmkkGyCQhIUZgIdd1e mkcLtPMelDUms+N8kEj56+KgYtmi4zQZV3hCY0xANsCB3wbs4pSBXQeKHbpMrDvIELANzV 7OdggqVy5/JdrdJT1FtcdeRq3sRR/9jHMRsK92jZGS2nnmEkshVCy1R7oFirqwGoqJo2Jh TFBCLnXthe5n4Lu1mkMquWb64RRNtY1CR0Fdq7TAbVTQiD7+p2uacPK8VbPJjA== 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 4NwhLC6fY1z1H6b; Mon, 16 Jan 2023 19:05:23 +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 30GJ5Nte036238; Mon, 16 Jan 2023 19:05:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30GJ5NCC036237; Mon, 16 Jan 2023 19:05:23 GMT (envelope-from git) Date: Mon, 16 Jan 2023 19:05:23 GMT Message-Id: <202301161905.30GJ5NCC036237@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: bb59375ae0ea - main - japanese/kakasi: 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: bb59375ae0ea035a780aabd0259f352c09b23ed9 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=bb59375ae0ea035a780aabd0259f352c09b23ed9 commit bb59375ae0ea035a780aabd0259f352c09b23ed9 Author: Dimitry Andric AuthorDate: 2023-01-07 15:53:53 +0000 Commit: Dimitry Andric CommitDate: 2023-01-16 19:04:47 +0000 japanese/kakasi: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that japanese/kakasi failed to build with clang 15: kanjiio.c:1083:11: error: incompatible integer to pointer conversion assigning to 'iconv_t' (aka 'struct __tag_iconv_t *') from 'int' [-Wint-conversion] fromutf8 = -1; ^ ~~ kanjiio.c:1087:9: error: incompatible integer to pointer conversion assigning to 'iconv_t' (aka 'struct __tag_iconv_t *') from 'int' [-Wint-conversion] toutf8 = -1; ^ ~~ This is because 'fromutf8' and 'toutf8' are of pointer type, not int. Add a cast to silence the warning. PR: 268815 Approved by: portmgr (tcberner) MFH: 2023Q1 --- japanese/kakasi/files/patch-src_kanjiio.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/japanese/kakasi/files/patch-src_kanjiio.c b/japanese/kakasi/files/patch-src_kanjiio.c new file mode 100644 index 000000000000..ad81fa336fc8 --- /dev/null +++ b/japanese/kakasi/files/patch-src_kanjiio.c @@ -0,0 +1,16 @@ +--- src/kanjiio.c.orig 2013-02-07 07:26:18 UTC ++++ src/kanjiio.c +@@ -1080,11 +1080,11 @@ close_iconv() + { + if (fromutf8 != -1) { + iconv_close(fromutf8); +- fromutf8 = -1; ++ fromutf8 = (iconv_t) -1; + } + if (toutf8 != -1) { + iconv_close(toutf8); +- toutf8 = -1; ++ toutf8 = (iconv_t) -1; + } + } + #endif /* KAKASI_SUPPORT_UTF8 */