From nobody Sun Dec 18 17:43:45 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 4NZqvP5GRPz1GmV3; Sun, 18 Dec 2022 17:43:45 +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 4NZqvP4qC9z4HnD; Sun, 18 Dec 2022 17:43:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385425; 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=CZ4h8Z2x+ZbKnNizuBLzOz3w8VyO4xsi5yDwTUD2uTQ=; b=jteweXg+6KBxMkf+jCq6Yi5ircCsgNCwwOFIaOHfDMcEnHzpBGyc3IdydRwJUNMsp2m98a 7AkJ2NX1Q+WAqaLDb3kiiZwpNs6IHkb+hiusPnRp3Y1sDh49PZ7jbZmAJ6VPX9DUlr3+M2 5Ep5le0RsRg/aRq6qHvxmuoLXnJ2C9gjPyBic08QdfemKwE/qolPikptDAppVnsYkPprhS HvGmkewVbrJCYdfxVZUKmzj/3orJ7u9RxFMqJHr9XP4i812ksEt1J3piQAttawuXKO/Nkl t0O6N+WUMhn+/tNUotMX5Tulrp/FhIHB1fOFGyqBJgsqMAFI9L9HlHzDK0hjhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385425; 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=CZ4h8Z2x+ZbKnNizuBLzOz3w8VyO4xsi5yDwTUD2uTQ=; b=jgMykmOAPIHJlQzMj6zb+I4PN2bu0tjaqEz/vCVF5+14xhZHc/7uaJj2Lq2iu2qROhel8E KDCteK013heO32p+ysMXhiDjq7TBAzlMoKaZPEvkHVxUd++GWktMPa6aeleLLBAXly9R4L kmzvfdJIWda++f9tsMhsOyTxNAARQyWXbyGNtrQdkHK6Oj7DamrjDQIZ2/f0vnPXITCrhi vIBu37jhsQ6hE+FOqUdSIe0Q23crTjUkvjsVip6ZJcN7CkKqGRLlgbzwUVcN/Xk+wq18Ho XA0Suk3F14kcFegh/m2gMWpCw8DrrP10ti2ohQjIuCo3aOzAml6mcaGMTfMVXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385425; a=rsa-sha256; cv=none; b=j9wb5tKwq050JfXru+xdPItpOe7qz22Q5SGFJ++yPlOoIazjTED7kos0W8oysXmxj4e97m jQ8hE9Oy292r2CrJPf6GODRLDpi68wJ3bXN4T5iYGxjiHfhLiQktxM8z/wuo6/F1uOcYXw rJHp2afhPz8ZdO2nn9/QKmTHddAhSbn4DMdbFXpxbVUl1l+AfYiHRUylGe0FtNvmqfdN5V WQdtnv8c1iJDD3w9CdZjmEszb7XXl2oIvteGrSwOtcA1YdFpB7+881unbYYr3WDGm+W0Bw u3KPnN7bo9wjLaxzpWsVU9TjOU1n2PR1QSkBV53+tVdcrl5EEoC/JkgHuo61pQ== 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 4NZqvP3wN0zPcY; Sun, 18 Dec 2022 17:43:45 +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 2BIHhjqi006340; Sun, 18 Dec 2022 17:43:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BIHhjgs006339; Sun, 18 Dec 2022 17:43:45 GMT (envelope-from git) Date: Sun, 18 Dec 2022 17:43:45 GMT Message-Id: <202212181743.2BIHhjgs006339@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: d5e379f66074 - main - japanese/canna-lib: 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: d5e379f66074db6b70a6c96d756965e6db925342 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=d5e379f66074db6b70a6c96d756965e6db925342 commit d5e379f66074db6b70a6c96d756965e6db925342 Author: Dimitry Andric AuthorDate: 2022-12-08 20:51:58 +0000 Commit: Dimitry Andric CommitDate: 2022-12-18 17:27:33 +0000 japanese/canna-lib: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that japanese/canna-lib failed to build with clang 15: crxgram.c:421:33: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] alert("unknown operation %c", op); ^~ rkc.c:2741:38: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'unsigned char *' [-Wint-conversion] nkanji = _RkwGetSimpleKanji(cxnum, dicname, cbuf, len, ^~~~~~~ This is mostly expected as canna-lib is very old K&R code, and clang 15 has -Wint-conversion as an error by default. Pass -Wno-error=int-conversion in CCOPTIONS to make the warning non-fatal. This should work for both clang and gcc. PR: 268256 Approved by: portmgr (tcberner) MFH: 2022Q4 --- japanese/canna-lib/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/japanese/canna-lib/Makefile b/japanese/canna-lib/Makefile index 9d2281993efc..30c9f612fb57 100644 --- a/japanese/canna-lib/Makefile +++ b/japanese/canna-lib/Makefile @@ -18,5 +18,6 @@ USE_LDCONFIG= yes ALL_TARGET= canna INSTALL_TARGET= instsgs MAKE_JOBS_UNSAFE= yes +MAKE_ARGS+= CCOPTIONS="-Wno-error=int-conversion" .include