From nobody Tue May 02 14:25: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 4Q9j6D059Dz492bD; Tue, 2 May 2023 14:25: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 4Q9j6C6jG6z47Rn; Tue, 2 May 2023 14:25:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683037523; 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=aH0nj4ZV+ZwAd1rNTSNtBKgg6xITNOd29Vy5nZ84Bw4=; b=n56HN0OePkXt7HO6yT51ahXI/tcPmPpK2LVHEcpCeWKRBqeNa2B4WecDzRZyZLHntMMPTT yGDPAwCEmb2PyamW3i4uATE6kskmodqr9+i1dTvrBf6Xu7PgjYsaOlkM+vB88pwdNXm07l stfIrd7rUKDnVymnn1FHWiMAGJF/zmJZRi+l4V7pjkdEMyeFpa7pK3psDyt2fbEk31VFh9 9J8sbolftFcCKu8IJ4N1Qt/Kjc/2cNdBz3qXSgk8MJ4pTo1Gi3hqHvdlb6xL8lwtFMW+Mx x0jjcjf0xO/gF1rCWu/hD6Zh3a8dCyA7i0nV+0W3LkHaJ3S/fkiRvOxV4ds4Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683037523; 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=aH0nj4ZV+ZwAd1rNTSNtBKgg6xITNOd29Vy5nZ84Bw4=; b=oSPI7viEbvDjcswbuQSjMfVIxCuXVWGYT/Nj3z9pfIuw7rXI+N9abGr3oS1WnCf5I0eOcX 9nFJelN/PkYlmtLoLsxXN6lbkUqcTN3a20r2HJo+NcpPWZoMdL3AZ/qb0q/PokybONXPWV XbcCE3D0x6jvQRJGvdzbNbddffWB1J19dWrzhhvonm84mrcLZuHWu/hANthoD357zDdFH6 F3gHBCmk2DndhNKC/Or9RN5OuhewrN6PPBwVl1iP6NzZyF278x8F+rRHCC4heKSSV38KdW TzcBCLbpuGSlgOpCue9JsOe45BcwCB9P4rHmkf4RjiX2Y+j/W9xtf/2jzElMiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683037523; a=rsa-sha256; cv=none; b=nOb1kb/XYabtq1l/zC0PNSms1YlU9CvfYFtU+iczDQ+ojKUk2/4XeourlfC08ZGg+xM4lp 7zVDloyWOZq73aI7sy8Ff6CeRP/65FuHpnxVERbnW6cTbXok3NQN3WSgjemN9ZKnK3joh5 5N1M4fXEFeRxWhScytDmuM2gCVhybJW2trcHPrun7Ooc8HCjvpnkzNUepNu2IRIP5Pu6fR Sqy8YCBeSpunTYN1O9JPaMVOfI1pbXDMhoKp+aGWPrVf2x05u0IBXlYzsaCJd0VllqZTM1 IrZgYfZPaA8wYY9wvVUMisKyWKGxsdMg2v8YKqtgpDU4Vdej8yMIi6TayFr0yg== 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 4Q9j6C5lB7zrFh; Tue, 2 May 2023 14:25: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 342EPNlp073602; Tue, 2 May 2023 14:25:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 342EPNH7073601; Tue, 2 May 2023 14:25:23 GMT (envelope-from git) Date: Tue, 2 May 2023 14:25:23 GMT Message-Id: <202305021425.342EPNH7073601@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Adriaan de Groot Subject: git: b94d1e58ddfa - main - math/readstat: fix build with clang15 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: adridg X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b94d1e58ddfa03e1162339e81a8465899249d0c5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by adridg: URL: https://cgit.FreeBSD.org/ports/commit/?id=b94d1e58ddfa03e1162339e81a8465899249d0c5 commit b94d1e58ddfa03e1162339e81a8465899249d0c5 Author: Adriaan de Groot AuthorDate: 2023-05-02 13:40:24 +0000 Commit: Adriaan de Groot CommitDate: 2023-05-02 14:25:21 +0000 math/readstat: fix build with clang15 .. continuing story of missing prototypes. --- math/readstat/Makefile | 2 +- math/readstat/files/patch-src_readstat__writer.c | 11 +++++++++++ math/readstat/files/patch-src_sas_readstat__sas.c | 11 +++++++++++ math/readstat/files/patch-src_sas_readstat__xport__read.c | 11 +++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) diff --git a/math/readstat/Makefile b/math/readstat/Makefile index ed5a13ebbe3d..6d2174c3f1b6 100644 --- a/math/readstat/Makefile +++ b/math/readstat/Makefile @@ -1,6 +1,6 @@ PORTNAME= readstat DISTVERSION= 1.1.8 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math kde MASTER_SITES= https://github.com/WizardMac/ReadStat/releases/download/v${DISTVERSION}/ diff --git a/math/readstat/files/patch-src_readstat__writer.c b/math/readstat/files/patch-src_readstat__writer.c new file mode 100644 index 000000000000..cc5db2096209 --- /dev/null +++ b/math/readstat/files/patch-src_readstat__writer.c @@ -0,0 +1,11 @@ +--- src/readstat_writer.c.orig 2023-05-02 13:36:19 UTC ++++ src/readstat_writer.c +@@ -35,7 +35,7 @@ readstat_string_ref_t *readstat_string_ref_init(const + return ref; + } + +-readstat_writer_t *readstat_writer_init() { ++readstat_writer_t *readstat_writer_init(void) { + readstat_writer_t *writer = calloc(1, sizeof(readstat_writer_t)); + + writer->variables = calloc(VARIABLES_INITIAL_CAPACITY, sizeof(readstat_variable_t *)); diff --git a/math/readstat/files/patch-src_sas_readstat__sas.c b/math/readstat/files/patch-src_sas_readstat__sas.c new file mode 100644 index 000000000000..b25b7075d0a0 --- /dev/null +++ b/math/readstat/files/patch-src_sas_readstat__sas.c @@ -0,0 +1,11 @@ +--- src/sas/readstat_sas.c.orig 2023-05-02 13:35:12 UTC ++++ src/sas/readstat_sas.c +@@ -120,7 +120,7 @@ static readstat_charset_entry_t _charset_table[] = { + { .code = 248, .name = "SHIFT_JISX0213" }, + }; + +-static time_t sas_epoch() { ++static time_t sas_epoch(void) { + return - 3653 * 86400; // seconds between 01-01-1960 and 01-01-1970 + } + diff --git a/math/readstat/files/patch-src_sas_readstat__xport__read.c b/math/readstat/files/patch-src_sas_readstat__xport__read.c new file mode 100644 index 000000000000..0a27d30ebcca --- /dev/null +++ b/math/readstat/files/patch-src_sas_readstat__xport__read.c @@ -0,0 +1,11 @@ +--- src/sas/readstat_xport_read.c.orig 2023-05-02 13:35:52 UTC ++++ src/sas/readstat_xport_read.c +@@ -45,7 +45,7 @@ static readstat_error_t xport_update_progress(xport_ct + return io->update(ctx->file_size, ctx->handle.progress, ctx->user_ctx, io->io_ctx); + } + +-static xport_ctx_t *xport_ctx_init() { ++static xport_ctx_t *xport_ctx_init(void) { + xport_ctx_t *ctx = calloc(1, sizeof(xport_ctx_t)); + return ctx; + }