]> git.alsa-project.org Git - alsa-lib.git/commit
test: update midifile library to ANSI C master
authorAdam Sampson <ats@offog.org>
Sun, 6 Jul 2025 04:07:45 +0000 (05:07 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jul 2025 13:31:40 +0000 (15:31 +0200)
commit3a9771812405be210e760e4e6667f2c023fe82f4
tree9059632a87fdeab16db2b3667ea33254fc4f4f7c
parent782b0597c25845cf8c48b3fe906e8374d1175f36
test: update midifile library to ANSI C

The midifile library used by the playmidi1 program dates from 1989, and
used pre-ANSI function definitions and prototypes. GCC 15 now defaults
to C23 where () means the same as (void) in prototypes, which causes
type mismatch errors.

Update the code to use ANSI function definitions and prototypes, so
it'll compile happily as anything from ANSI C to C23. This revealed that
playmidi1's do_tempo had the wrong argument type, so correct that as
well.

Closes: https://github.com/alsa-project/alsa-lib/pull/463
Signed-off-by: Adam Sampson <ats@offog.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
test/midifile.c
test/midifile.h
test/playmidi1.c