Originally committed as revision 11069 to svn://svn.ffmpeg.org/ffmpeg/trunk
check_ldflags(){
log check_ldflags "$@"
check_ld "$@" <<EOF && add_ldflags "$@"
-int main(){
+int main(void){
return 0;
}
EOF
disable $func
check_ld "$@" <<EOF && enable $func
extern int $func();
-int main(){
+int main(void){
$func();
}
EOF
done
check_ld "$@" <<EOF && enable $func
$incs
-int main(){
+int main(void){
(void) $func;
return 0;
}
static void sighandler(int sig){
raise(SIGTERM);
}
-int main(){
+int main(void){
signal(SIGILL, sighandler);
signal(SIGFPE, sighandler);
signal(SIGSEGV, sighandler);
# compiler sanity check
check_exec <<EOF
-int main(){
+int main(void){
return 0;
}
EOF