From nobody Fri Dec 9 17:39:29 2022 X-Original-To: dev-commits-ports-all@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 4NTJDd6hbRz4jqH0; Fri, 9 Dec 2022 17:39:29 +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 4NTJDd6F1mz3GZ1; Fri, 9 Dec 2022 17:39:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670607569; 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=x6AMJK7wGxRgrwM11lq/b/xcQKTO+O2IU76SMNbtQ7g=; b=N5AabjcB1fsx/65fCOjeO0CIcZyf6kO09PR8MP0RI30fDt1Y1FeberczAz3I1tY7kpq2Rq UilFOjvRdF4WR/7mKiPsias7tWGsPPgualJKuzdBuL8+QtoSE49UqK0yFNwRkDMhXOL7Fn X9V6u1UBtrN/35Suf1QtFfFLCP14pnZof5Y3Dwr9AH3TBDvjk09wT/NJ8yfu9Z1WTmgD2S fbE8DsgYWQu1dj1LtYZfliJuIozxqydbgbWFK3rOQc3xQULq/ogQWRVTRsAwW2bnDI0R+z pXz31co0w3nE+whb+3plRPjzMDk9Uvyr8L7VSb8rWqc9YoNKwdZeSgw9J2+g7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670607569; 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=x6AMJK7wGxRgrwM11lq/b/xcQKTO+O2IU76SMNbtQ7g=; b=DHqaSxXcaTRMa/wkRLU4YP2j8bfP91ZdknKc8X6DYvwWPLA7CAtMof5CnEUbIbCmoUHuEq w74GzEQ5YKAjdYiizb4EZssfjjI4c6sExH5at/XNV56vOyGNmJorEpoXMrZgMYJs6INCYy MwIV4SKYhaQw22iCk134SOXBpmH0M4PbBofnvdoEIg435bBNzM0+Ws/ssuIbmMwdfitVdv i+1erGAWaYxiTW5AYcWhpbYpWAKOxeYtrCJ/jFSQPbxqXxt95X8nu0W15lRRuF5GRCMM8f 1z2sIeU70AqaB2UiA6iYvbzG+G5Hb+HpOE9ZdHWOzqsWX2iMKnfGGwQNAcwCLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670607569; a=rsa-sha256; cv=none; b=jaWw8svttIYOEyltfnSy673H3NZilil8l6ELKWP18ej6s++8L0F1wcXTDkDLN9zHk84VbG OerwPKPEB70iiZD6sr/tjBeIrqny6Z/NiQszSB8lCJTdftqCQej9ErLzTW1v4uQgd/ce0w w0HC4yKm3MC1/PfE/c0UbJn8gB+wR2AhkfHsXxExNOIeBje2XKAQUH40gYWxi5jrpw2T39 iVRkkdR+Db4wnj6+/5W6cyozPOLn9ue1chJ31ooNfsdVVQLtD8iaDo678m50i6Zi/BVEtW XCcEqKIK/INyeheG4nlzkI9SLNZbdHdVQoqi2VfxN87h0AHTF86+70kgm5fOWw== 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 4NTJDd5Kz7zkf3; Fri, 9 Dec 2022 17:39:29 +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 2B9HdT3J043525; Fri, 9 Dec 2022 17:39:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B9HdTkk043524; Fri, 9 Dec 2022 17:39:29 GMT (envelope-from git) Date: Fri, 9 Dec 2022 17:39:29 GMT Message-Id: <202212091739.2B9HdTkk043524@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Jan Beich Subject: git: 2a57c51d0174 - 2022Q4 - textproc/scdoc: unbreak build with clang 15 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/2022Q4 X-Git-Reftype: branch X-Git-Commit: 2a57c51d01741ce7265033de6fff1b5dee6fd837 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch 2022Q4 has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=2a57c51d01741ce7265033de6fff1b5dee6fd837 commit 2a57c51d01741ce7265033de6fff1b5dee6fd837 Author: Dimitry Andric AuthorDate: 2022-12-09 15:21:42 +0000 Commit: Jan Beich CommitDate: 2022-12-09 17:39:27 +0000 textproc/scdoc: unbreak build with clang 15 In file included from src/string.c:3: include/str.h:10:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] struct str *str_create(); ^ void src/string.c:15:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] struct str *str_create() { ^ void PR: 268277 Reported by: antoine (via bug 265425 exp-run) (cherry picked from commit d30ead133df49f67fa29fbcc5cc4be19a2ad6af4) --- textproc/scdoc/files/patch-clang15 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/textproc/scdoc/files/patch-clang15 b/textproc/scdoc/files/patch-clang15 new file mode 100644 index 000000000000..8dd4a4a5e6f8 --- /dev/null +++ b/textproc/scdoc/files/patch-clang15 @@ -0,0 +1,24 @@ +https://lists.sr.ht/~sircmpwn/public-inbox/patches/37432 + +--- include/str.h.orig 2021-11-13 08:04:45 UTC ++++ include/str.h +@@ -7,7 +7,7 @@ struct str { + size_t len, size; + }; + +-struct str *str_create(); ++struct str *str_create(void); + void str_free(struct str *str); + void str_reset(struct str *str); + int str_append_ch(struct str *str, uint32_t ch); +--- src/string.c.orig 2021-11-13 08:04:45 UTC ++++ src/string.c +@@ -12,7 +12,7 @@ static void ensure_capacity(struct str *str, size_t le + } + } + +-struct str *str_create() { ++struct str *str_create(void) { + struct str *str = xcalloc(1, sizeof(struct str)); + str->str = xcalloc(16, 1); + str->size = 16;