From nobody Fri Dec 09 17:38:52 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 4NTJCx2bvzz4jqM3; Fri, 9 Dec 2022 17:38:53 +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 4NTJCx1yWwz3GTJ; Fri, 9 Dec 2022 17:38:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670607533; 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=TjBIkbsOiAq/oLSxAedy4rzlucGpIBGThu+ZRC+isHs=; b=m5wUmJbX1vlKq0InWB8Np9h/XirW4d+Ww+7fP37NJ4Ql+xPMUb92kdlE1jKrgqONA+zASx lUxw0AmmkIKoTBLwRZ4TFUeo+6oQMema1URCGCiJwa6tfD8oo9L0XOelFCxAlWY23kEhBR riXIqT08fQvI9IZFKGN2MpQ644kPRlmi4PF1rLKR55dTSRUP3nefpT1IpRyf3HjhlLk6pY 5gWnLzOtD/B8vsMJ/HYBrbkoikSKVRNiR/uda/AKz7eBJqxeuBXBPWNmhhJzRsT8YOZoro tDrNlVhw4pTFg+guxZ2OwORi/cz62EKjVeIHH0fi2lLj2UFIOfrtO6Zqefs/vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670607533; 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=TjBIkbsOiAq/oLSxAedy4rzlucGpIBGThu+ZRC+isHs=; b=EL9Kk+3ugm2sAQmlfyejIZy/0klE7H5kGsPmsJv36Sq+erxLA/Ia0hTM8xx6wDbT6X9MOI 4/p0kOh4ZUky4ArcczBIGWn7YkHW3YX//41pE9IEkZXWbQja3yFPQ6fFUakg/j9CUvbzzg qDWGLg1qrP4IJYpAo+IABBb1/2uzeJxunAyP3MbPOoYuv+Vosra7KjOilRVjMhraSe1SNH vzUSC3pMZuIosQCYOCZV0xT2s6XOaJHrTqD0biagYXM1pSbrUhJCLxOw2E4XXieNgdTLTX unm6GpXSQ2VtTZEvOCmqa0IF/INYIy1zdFAx1SVuHCkBf+hwwiTW0EOS6ZSi8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670607533; a=rsa-sha256; cv=none; b=F43kemRoq651A5d4oEX13uU6f8J0WXfqGDmmLg8UaG3PypjZF7vKLyrGqjTX2WgxlOWEXG mR4lawnthd9RDdDsIzYWsV3ltl7aIXbXeCM5UbHrknXJHplfHHYyLYb5UQJgtqs9fW2uAS XHyox21Voal5O6HvUmEWLuwxGHVg874Bo6QLj8ThqMdmMw8Y3M+mPsZTwrC+d30/VKPx71 hH82LjCuN/3J3T3NZpyzFiwzoLIPd8N1oqj2rSqAIUQvnwXGtZhpMFtubry6fqjdJHs+9K IxvmOlWdkmtbSv8VLsqKAvFmWg+STo6U3YIB4qJO8kLve1qufcWGw2ay9BrHxA== 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 4NTJCx0p4WzkqV; Fri, 9 Dec 2022 17:38:53 +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 2B9HcqhY043343; Fri, 9 Dec 2022 17:38:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B9HcqxG043342; Fri, 9 Dec 2022 17:38:52 GMT (envelope-from git) Date: Fri, 9 Dec 2022 17:38:52 GMT Message-Id: <202212091738.2B9HcqxG043342@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: d30ead133df4 - main - textproc/scdoc: unbreak 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: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d30ead133df49f67fa29fbcc5cc4be19a2ad6af4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=d30ead133df49f67fa29fbcc5cc4be19a2ad6af4 commit d30ead133df49f67fa29fbcc5cc4be19a2ad6af4 Author: Dimitry Andric AuthorDate: 2022-12-09 15:21:42 +0000 Commit: Jan Beich CommitDate: 2022-12-09 17:32:07 +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) --- 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;