From: orbea Date: Mon, 10 Oct 2022 19:50:00 +0000 (-0700) Subject: Fix -Wmain-return-type clang warnings in configure X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b238bba540656cfc46d3af711db2e42266e1815c;p=picodrive.git Fix -Wmain-return-type clang warnings in configure --- 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 "$@" }