Mercurial > mplayer.hg
changeset 25099:aa166b26298d
main() --> main(void)
author | diego |
---|---|
date | Wed, 21 Nov 2007 09:17:04 +0000 |
parents | c38f1f42ee02 |
children | 531116b7693d |
files | configure |
diffstat | 1 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Nov 21 09:14:01 2007 +0000 +++ b/configure Wed Nov 21 09:17:04 2007 +0000 @@ -1498,7 +1498,7 @@ echocheck "cross compilation" if test $_cross_compile = auto ; then cat > $TMPC << EOF -int main() { return 0; } +int main(void) { return 0; } EOF _cross_compile=yes cc_check && "$TMPEXE" && _cross_compile=no @@ -2137,7 +2137,7 @@ echocheck "CPU type" cat > $TMPC << EOF -int main() { +int main(void) { unsigned long ver, mask; asm ("implver %0" : "=r" (ver)); asm ("amask %1, %0" : "=r" (mask) : "r" (-1)); @@ -2407,7 +2407,7 @@ if test "$_asmalign_pot" = auto ; then _asmalign_pot=no cat > $TMPC << EOF -main() { asm (".align 3"); } +main(void) { asm (".align 3"); } EOF cc_check && _asmalign_pot=yes fi @@ -2431,7 +2431,7 @@ p='' cat > $TMPC << EOF -int main() { +int main(void) { return 0; } EOF @@ -2677,7 +2677,7 @@ echocheck "restrict keyword" for restrict_keyword in restrict __restrict __restrict__ ; do - echo "void foo(char * $restrict_keyword p); int main(){}" > $TMPC + echo "void foo(char * $restrict_keyword p); int main(void){}" > $TMPC if cc_check; then _def_restrict_keyword=$restrict_keyword break; @@ -2703,7 +2703,7 @@ a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } -int main() { return foo(10) && foo(0); } +int main(void) { return foo(10) && foo(0); } EOF _builtin_expect=no cc_check && _builtin_expect=yes @@ -5455,7 +5455,7 @@ #include <cdio/version.h> #include <cdio/cdda.h> #include <cdio/paranoia.h> -int main() +int main(void) { void *test = cdda_verbose_set; printf("%s\n", CDIO_VERSION); @@ -5533,7 +5533,7 @@ #if ((FREETYPE_MAJOR < 2) || ((FREETYPE_MINOR == 0) && (FREETYPE_PATCH < 9))) #error "Need FreeType 2.0.9 or newer" #endif -int main() +int main(void) { FT_Library library; FT_Int major=-1,minor=-1,patch=-1; @@ -5577,7 +5577,7 @@ cat > $TMPC << EOF #include <stdio.h> #include <fontconfig/fontconfig.h> -int main() +int main(void) { int err = FcInit(); if(err == FcFalse){ @@ -5622,7 +5622,7 @@ #if ((FREETYPE_MAJOR < 2) || (FREETYPE_MINOR < 1) || ((FREETYPE_MINOR == 1) && (FREETYPE_PATCH < 8))) #error "Need FreeType 2.1.8 or newer" #endif -int main() { return 0; } +int main(void) { return 0; } EOF _ass=no cc_check `$_freetypeconfig --cflags` `$_freetypeconfig --libs` && tmp_run && _ass=yes @@ -5646,7 +5646,7 @@ /* workaround for fribidi 0.10.4 and below */ #define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8 #include <fribidi/fribidi.h> -int main() +int main(void) { if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) { printf("Fribidi headers are not consistents with the library!\n"); @@ -5675,7 +5675,7 @@ if test "$_enca" = auto ; then cat > $TMPC << EOF #include <enca.h> -int main() +int main(void) { const char **langs; size_t langcnt; @@ -7064,7 +7064,7 @@ cat > $TMPC <<EOF short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'), (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0}; -int main(){ +int main(void){ return (int)ascii_name; } EOF @@ -7501,7 +7501,7 @@ CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS" cat > $TMPC << EOF -int main() { return 0; } +int main(void) { return 0; } EOF if test "$cc_vendor" = "gnu" ; then cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS"