From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B3CEE158094 for ; Mon, 10 Oct 2022 19:55:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2522E092A; Mon, 10 Oct 2022 19:55:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DAFCBE092A for ; Mon, 10 Oct 2022 19:55:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 01B51340B65 for ; Mon, 10 Oct 2022 19:55:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9AF20523 for ; Mon, 10 Oct 2022 19:55:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1665431720.0ed289c4438eb7ac8dd34d590900174d7b019a95.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/audiofile/, media-libs/audiofile/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/audiofile/audiofile-0.3.6-r5.ebuild media-libs/audiofile/files/audiofile-0.3.6-strict-prototypes.patch X-VCS-Directories: media-libs/audiofile/files/ media-libs/audiofile/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0ed289c4438eb7ac8dd34d590900174d7b019a95 X-VCS-Branch: master Date: Mon, 10 Oct 2022 19:55:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 00abdc3d-ab9a-4826-a2f2-f9d3713722b9 X-Archives-Hash: 71c4b67da2abfbe38d360310b0647d6e commit: 0ed289c4438eb7ac8dd34d590900174d7b019a95 Author: orbea riseup net> AuthorDate: Mon Oct 10 18:26:35 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Oct 10 19:55:20 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ed289c4 media-libs/audiofile: Fix -Werror=strict-prototypes Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240 Upstream-PR: https://github.com/mpruett/audiofile/pull/64 Upstream-Commit: https://github.com/mpruett/audiofile/commit/7227a65c9725a89f839d01826ea8427becee30be Signed-off-by: orbea riseup.net> Closes: https://github.com/gentoo/gentoo/pull/27729 Signed-off-by: Sam James gentoo.org> media-libs/audiofile/audiofile-0.3.6-r5.ebuild | 1 + .../files/audiofile-0.3.6-strict-prototypes.patch | 82 ++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/media-libs/audiofile/audiofile-0.3.6-r5.ebuild b/media-libs/audiofile/audiofile-0.3.6-r5.ebuild index 02f89e0f9b41..a759228901b9 100644 --- a/media-libs/audiofile/audiofile-0.3.6-r5.ebuild +++ b/media-libs/audiofile/audiofile-0.3.6-r5.ebuild @@ -23,6 +23,7 @@ PATCHES=( "${FILESDIR}"/${PN}-0.3.6-mingw32.patch "${FILESDIR}"/${PN}-0.3.6-CVE-2017-68xx.patch "${FILESDIR}"/${PN}-0.3.6-CVE-2018-13440-CVE-2018-17095.patch + "${FILESDIR}"/${PN}-0.3.6-strict-prototypes.patch ) src_prepare() { diff --git a/media-libs/audiofile/files/audiofile-0.3.6-strict-prototypes.patch b/media-libs/audiofile/files/audiofile-0.3.6-strict-prototypes.patch new file mode 100644 index 000000000000..6e78b773c93c --- /dev/null +++ b/media-libs/audiofile/files/audiofile-0.3.6-strict-prototypes.patch @@ -0,0 +1,82 @@ +https://github.com/mpruett/audiofile/pull/64 + +From 519f6c19d3bcfa048fc468f0094ab4235e7c77b2 Mon Sep 17 00:00:00 2001 +From: orbea +Date: Mon, 10 Oct 2022 11:13:10 -0700 +Subject: [PATCH] Fix -Werror=strict-prototypes + +This will be required for upcoming gcc and clang versions. + +Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240 + +diff --git a/libaudiofile/g711.c b/libaudiofile/g711.c +index 8fb2323..392766c 100644 +--- a/libaudiofile/g711.c ++++ b/libaudiofile/g711.c +@@ -74,8 +74,7 @@ static int search(int val, const short *table, int size) + * John Wiley & Sons, pps 98-111 and 472-476. + */ + unsigned char +-_af_linear2alaw(pcm_val) +- int pcm_val; /* 2's complement (16-bit range) */ ++_af_linear2alaw(int pcm_val) /* 2's complement (16-bit range) */ + { + int mask; + int seg; +@@ -110,8 +109,7 @@ _af_linear2alaw(pcm_val) + * + */ + int +-_af_alaw2linear(a_val) +- unsigned char a_val; ++_af_alaw2linear(unsigned char a_val) + { + int t; + int seg; +diff --git a/sfcommands/sfinfo.c b/sfcommands/sfinfo.c +index c8fb913..91221a5 100644 +--- a/sfcommands/sfinfo.c ++++ b/sfcommands/sfinfo.c +@@ -48,7 +48,7 @@ void errorHandler(long error, const char *message) + fprintf(stderr, "sfinfo: %s [error %ld]\n", message, error); + } + +-void printusage() ++void printusage(void) + { + printf("usage: sfinfo [options...] soundfiles...\n"); + printf("options:\n"); +@@ -58,7 +58,7 @@ void printusage() + printf(" -v, --version Print version\n"); + } + +-void printversion() ++void printversion(void) + { + printf("sfinfo: Audio File Library version %s\n", VERSION); + } +https://github.com/mpruett/audiofile/commit/7227a65c9725a89f839d01826ea8427becee30be + +From 7227a65c9725a89f839d01826ea8427becee30be Mon Sep 17 00:00:00 2001 +From: Michael Pruett +Date: Thu, 7 Mar 2013 22:44:56 -0800 +Subject: [PATCH] Fix compiler warning regarding discarding const + qualification. + +diff --git a/libaudiofile/g711.c b/libaudiofile/g711.c +index 394543e..8fb2323 100644 +--- a/libaudiofile/g711.c ++++ b/libaudiofile/g711.c +@@ -43,11 +43,7 @@ + static const short seg_end[8] = {0xFF, 0x1FF, 0x3FF, 0x7FF, + 0xFFF, 0x1FFF, 0x3FFF, 0x7FFF}; + +-static int +-search(val, table, size) +- int val; +- short *table; +- int size; ++static int search(int val, const short *table, int size) + { + int i; +