Commit 458e8995 authored by diego's avatar diego

main() --> main(void)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11069 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d9a641a8
...@@ -442,7 +442,7 @@ EOF ...@@ -442,7 +442,7 @@ EOF
check_ldflags(){ check_ldflags(){
log check_ldflags "$@" log check_ldflags "$@"
check_ld "$@" <<EOF && add_ldflags "$@" check_ld "$@" <<EOF && add_ldflags "$@"
int main(){ int main(void){
return 0; return 0;
} }
EOF EOF
...@@ -467,7 +467,7 @@ check_func(){ ...@@ -467,7 +467,7 @@ check_func(){
disable $func disable $func
check_ld "$@" <<EOF && enable $func check_ld "$@" <<EOF && enable $func
extern int $func(); extern int $func();
int main(){ int main(void){
$func(); $func();
} }
EOF EOF
...@@ -486,7 +486,7 @@ check_func2(){ ...@@ -486,7 +486,7 @@ check_func2(){
done done
check_ld "$@" <<EOF && enable $func check_ld "$@" <<EOF && enable $func
$incs $incs
int main(){ int main(void){
(void) $func; (void) $func;
return 0; return 0;
} }
...@@ -535,7 +535,7 @@ check_exec_crash(){ ...@@ -535,7 +535,7 @@ check_exec_crash(){
static void sighandler(int sig){ static void sighandler(int sig){
raise(SIGTERM); raise(SIGTERM);
} }
int main(){ int main(void){
signal(SIGILL, sighandler); signal(SIGILL, sighandler);
signal(SIGFPE, sighandler); signal(SIGFPE, sighandler);
signal(SIGSEGV, sighandler); signal(SIGSEGV, sighandler);
...@@ -1391,7 +1391,7 @@ rm $TMPE ...@@ -1391,7 +1391,7 @@ rm $TMPE
# compiler sanity check # compiler sanity check
check_exec <<EOF check_exec <<EOF
int main(){ int main(void){
return 0; return 0;
} }
EOF EOF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment