audacity: fix build with clang 17

This commit is contained in:
Chongyun Lee 2023-12-24 21:41:17 +08:00
parent 4d5720a528
commit f54d9c3ad3
3 changed files with 30 additions and 1 deletions

View File

@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
# Version 3.0.0 or higher does not work with vanilla wxWidgets.
TERMUX_PKG_VERSION=2.4.2
TERMUX_PKG_REVISION=8
TERMUX_PKG_REVISION=9
_FFMPEG_VERSION=4.4.3
TERMUX_PKG_SRCURL=(https://github.com/audacity/audacity/archive/Audacity-${TERMUX_PKG_VERSION}.tar.gz
https://www.ffmpeg.org/releases/ffmpeg-${_FFMPEG_VERSION}.tar.xz)

View File

@ -0,0 +1,18 @@
--- a/lib-src/libnyquist/nyquist/cmt/midifile.c
+++ b/lib-src/libnyquist/nyquist/cmt/midifile.c
@@ -380,6 +380,7 @@
static void
metaevent(type)
+int type;
{
int leng = msgleng();
char *m = msg();
@@ -510,6 +511,7 @@
static long
to32bit(c1,c2,c3,c4)
+int c1, c2, c3, c4;
{
long value = 0L;

View File

@ -0,0 +1,11 @@
--- a/lib-src/libnyquist/nyquist/nyqsrc/handlers.c
+++ b/lib-src/libnyquist/nyquist/nyqsrc/handlers.c
@@ -6,7 +6,7 @@
/* note -- a simple way to make a midi note on channel 1 */
/**/
-void note(pitch, dur)
+void note(int pitch, int dur)
{
}