From nobody Fri Dec 16 22:52:42 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 4NYkrp2hwyzsx65; Fri, 16 Dec 2022 22:52:42 +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 4NYkrp2FY2z4GNn; Fri, 16 Dec 2022 22:52:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671231162; 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=fy+uVzHKiBQWPSYrCn4u+At+rtXrM9Fvq6GsRlDV+aE=; b=SOzQHGzeXlLr1iHCmlQT6zfIxTd0DC4RyfzwVyPb8GvnFec4xqW2xe2ZrxLwmvUTsXN3g2 N+uAlLWstCgJmuehqu4e+vIPQcsQsmV00i059KQYwYVcb2TQg5qmtS84NjWtkPEU1Vwb1b R6NW2oldY12WlaY9itfOXxBBOt43KF35rW0aBaVCK5oUl6YWf55Z+gyy94/DWx9HTOcH49 YU5kFszQSBO/rHFRvQOKBjvSFqBSnLBQksWFrVKUVPdHNqK1LuctBjDorREppOsn3Z6ydF a6yexYowoNcXq4hWvNa0auLGOm+NDdymeZHmkOsI6HgThLpmOnP2Z5quAv2R/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671231162; 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=fy+uVzHKiBQWPSYrCn4u+At+rtXrM9Fvq6GsRlDV+aE=; b=wt2pHLuatfWRtj9hM8WiRIkhat+Kdp8GGCbs0iaiMLyYpjv+b+Z3hTP8LJ0hmo3+gTeH0r 2qXZRGbPY9fMZ1n5U05an0AmppS610WX7B1r15kOHKEbvxZy3oP4TCzBVuGtnP+Zv3MYCQ P64SxUJHB+t9nSwaudL20YzKLya1+qs83H+mucq8f+UplmtDudTG1sEUbg+WYvG0nl6PHa H5YH+XZaxBonmitv6MIX/yiDG1fkwCXLSiMHQ61/n0OfKp4RzWYDuOeGj81dA0gXFYMVYt Sj5heioTU4SLK4wiB/bLf8AQty6bxLEj5E3nyU7XP38yyKRpheTNqLFv65HHJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671231162; a=rsa-sha256; cv=none; b=k/fxdo1tkcHp2UiCR2vOgWDGCSjmKZkRaOY+rWzxKQENo3UdwYK53FvZMBjImh6W9tQuO0 AqrP5Fq0dt6XGvXhMUSzbeQhVaQN6p0Qn0MrJBD7pAU6OV8QP+1/j5m3DYLnU9h7cbnei/ VeCh/JClygul7HGeVo9dUm8hriyYB1jwic4ScgyJ6mRdkkcE4+f9K0wJlY5uXVg2luBB23 TQuawt0vnCACEWZdlWAT/UlRjpL9QRXV5JVlOY7TKYgQU8yUpxnSWzg4o8QHU+hBg13cKw s3Ew1mPl/x7YYewRKNXcGVQASiisBpgD7xcSqveCv1CkD8Y+QOHKOzTc2CyGVA== 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 4NYkrp11gdzVNf; Fri, 16 Dec 2022 22:52:42 +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 2BGMqgSN026257; Fri, 16 Dec 2022 22:52:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BGMqgsh026256; Fri, 16 Dec 2022 22:52:42 GMT (envelope-from git) Date: Fri, 16 Dec 2022 22:52:42 GMT Message-Id: <202212162252.2BGMqgsh026256@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Andree Subject: git: 8b60e005cdb5 - main - databases/kyotocabinet: add prototypes to kclangc.h declarations. 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: mandree X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8b60e005cdb55fcf5100bd295bb9b8940515f63a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=8b60e005cdb55fcf5100bd295bb9b8940515f63a commit 8b60e005cdb55fcf5100bd295bb9b8940515f63a Author: Matthias Andree AuthorDate: 2022-12-11 13:51:49 +0000 Commit: Matthias Andree CommitDate: 2022-12-16 22:08:29 +0000 databases/kyotocabinet: add prototypes to kclangc.h declarations. Some function declarations just use () as argument list. This is valid C++, but not C, and clang-15 complains with -Wstrict-prototypes: /usr/local/include/kclangc.h:261:13: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] double kcnan(); ^ void /usr/local/include/kclangc.h:268:13: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] double kcinf(); ^ void /usr/local/include/kclangc.h:1525:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] KCLIST* kclistnew(); ^ void Add the missing void. PR: 268313 --- databases/kyotocabinet/Makefile | 1 + databases/kyotocabinet/files/patch-kclangc.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/databases/kyotocabinet/Makefile b/databases/kyotocabinet/Makefile index a2bddd1729c1..f2f55d0585aa 100644 --- a/databases/kyotocabinet/Makefile +++ b/databases/kyotocabinet/Makefile @@ -1,5 +1,6 @@ PORTNAME= kyotocabinet PORTVERSION= 1.2.79 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= https://dbmx.net/kyotocabinet/pkg/ \ LOCAL/sunpoet diff --git a/databases/kyotocabinet/files/patch-kclangc.h b/databases/kyotocabinet/files/patch-kclangc.h new file mode 100644 index 000000000000..60350a2b1be0 --- /dev/null +++ b/databases/kyotocabinet/files/patch-kclangc.h @@ -0,0 +1,28 @@ +--- kclangc.h.orig 2020-12-18 02:48:28 UTC ++++ kclangc.h +@@ -258,14 +258,14 @@ size_t kclevdist(const void* abuf, size_t asiz, const + * Get the quiet Not-a-Number value. + * @return the quiet Not-a-Number value. + */ +-double kcnan(); ++double kcnan(void); + + + /** + * Get the positive infinity value. + * @return the positive infinity value. + */ +-double kcinf(); ++double kcinf(void); + + + /** +@@ -1522,7 +1522,7 @@ typedef struct { + * @note The object of the return value should be released with the kclistdel function when it is + * no longer in use. + */ +-KCLIST* kclistnew(); ++KCLIST* kclistnew(void); + + + /**