Fix building with clang 16
commit9aad9b92bf1115884fa56700f43914aea03ee716
authorBrahmajit Das <brahmajit.xyz@gmail.com>
Sat, 29 Jul 2023 18:59:44 +0000 (30 00:29 +0530)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 29 Jul 2023 21:52:29 +0000 (29 22:52 +0100)
tree4c65760039ed0fbb71dfe07a85e40aec1a842cf6
parente2b54445fdf355758034c4d9e593835d48f15391
Fix building with clang 16

From Clang 16 (and GCC 13) -Wimplicit-function-declaration has been
turned on by default. This resutls in warnings such as

song_hash.c: In function ‘insert_song’:
song_hash.c:22:39: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
   22 |         new_elt = (struct hash_elt *) malloc(sizeof(struct hash_elt));
      |                                       ^~~~~~

This patch should fix these warnings. The warnings can be reproceded by
both recent version of Clang and GCC.

First discovered on Gentoo Linux: https://bugs.gentoo.org/882321

Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
wmmp3/buttons.c
wmmp3/main.c
wmmp3/mpg123ctl.c
wmmp3/song_hash.c