mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-07 08:08:04 -04:00
Fix -Wmain-return-type clang warnings in configure
This commit is contained in:
parent
fa43b5862d
commit
b238bba540
1 changed files with 5 additions and 5 deletions
10
configure
vendored
10
configure
vendored
|
@ -265,7 +265,7 @@ check_libpng()
|
|||
{
|
||||
cat > $TMPC <<EOF
|
||||
#include <png.h>
|
||||
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 <<EOF
|
||||
#include <sys/soundcard.h>
|
||||
#include <sys/ioctl.h>
|
||||
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 <<EOF
|
||||
#include <alsa/asoundlib.h>
|
||||
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 <<EOF
|
||||
#include <SDL.h>
|
||||
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 <<EOF
|
||||
#include <libavcodec/avcodec.h>
|
||||
void main(void) { avcodec_decode_audio3(0, 0, 0, 0); }
|
||||
int main(void) { avcodec_decode_audio3(0, 0, 0, 0); }
|
||||
EOF
|
||||
compile_object "$@"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue