mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-08 08:28:05 -04:00
Fix -Werror=strict-prototypes
This will be required for upcoming gcc and clang versions. Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
This commit is contained in:
parent
3672cad8d0
commit
fa43b5862d
4 changed files with 9 additions and 9 deletions
11
configure
vendored
11
configure
vendored
|
@ -265,7 +265,7 @@ check_libpng()
|
|||
{
|
||||
cat > $TMPC <<EOF
|
||||
#include <png.h>
|
||||
void main() { png_init_io(0, 0); }
|
||||
void main(void) { png_init_io(0, 0); }
|
||||
EOF
|
||||
# compile_binary
|
||||
compile_object
|
||||
|
@ -276,7 +276,7 @@ check_oss()
|
|||
cat > $TMPC <<EOF
|
||||
#include <sys/soundcard.h>
|
||||
#include <sys/ioctl.h>
|
||||
void main() { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); }
|
||||
void main(void) { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); }
|
||||
EOF
|
||||
compile_binary
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ check_alsa()
|
|||
{
|
||||
cat > $TMPC <<EOF
|
||||
#include <alsa/asoundlib.h>
|
||||
void main() { snd_pcm_open(0, 0, 0, 0); }
|
||||
void main(void) { snd_pcm_open(0, 0, 0, 0); }
|
||||
EOF
|
||||
compile_binary "$@"
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ check_sdl()
|
|||
{
|
||||
cat > $TMPC <<EOF
|
||||
#include <SDL.h>
|
||||
void main() { SDL_OpenAudio(0, 0); }
|
||||
void main(void) { SDL_OpenAudio(0, 0); }
|
||||
EOF
|
||||
compile_binary "$@"
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ check_libavcodec()
|
|||
{
|
||||
cat > $TMPC <<EOF
|
||||
#include <libavcodec/avcodec.h>
|
||||
void main() { avcodec_decode_audio3(0, 0, 0, 0); }
|
||||
void main(void) { avcodec_decode_audio3(0, 0, 0, 0); }
|
||||
EOF
|
||||
compile_object "$@"
|
||||
}
|
||||
|
@ -353,6 +353,7 @@ if [ "$need_sdl" = "yes" ]; then
|
|||
fi
|
||||
|
||||
cat > $TMPC <<EOF
|
||||
#include <stdio.h>
|
||||
void test(void *f, void *d) { fread(d, 1, 1, f); }
|
||||
EOF
|
||||
if compile_object -Wno-unused-result; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue