From b238bba540656cfc46d3af711db2e42266e1815c Mon Sep 17 00:00:00 2001 From: orbea Date: Mon, 10 Oct 2022 12:50:00 -0700 Subject: [PATCH] Fix -Wmain-return-type clang warnings in configure --- configure | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 17f71858..c99353a5 100755 --- a/configure +++ b/configure @@ -265,7 +265,7 @@ check_libpng() { cat > $TMPC < - void main(void) { png_init_io(0, 0); } + int main(void) { png_init_io(0, 0); } EOF # compile_binary compile_object @@ -276,7 +276,7 @@ check_oss() cat > $TMPC < #include - void main(void) { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); } + int main(void) { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); } EOF compile_binary } @@ -285,7 +285,7 @@ check_alsa() { cat > $TMPC < - void main(void) { snd_pcm_open(0, 0, 0, 0); } + int main(void) { snd_pcm_open(0, 0, 0, 0); } EOF compile_binary "$@" } @@ -294,7 +294,7 @@ check_sdl() { cat > $TMPC < - void main(void) { SDL_OpenAudio(0, 0); } + int main(void) { SDL_OpenAudio(0, 0); } EOF compile_binary "$@" } @@ -303,7 +303,7 @@ check_libavcodec() { cat > $TMPC < - void main(void) { avcodec_decode_audio3(0, 0, 0, 0); } + int main(void) { avcodec_decode_audio3(0, 0, 0, 0); } EOF compile_object "$@" } -- 2.39.5