# HG changeset patch # User diego # Date 1195636624 0 # Node ID aa166b26298d3f5fd36853139c792ba4dd49e6bd # Parent c38f1f42ee02542cfc54d34461cf859a2832c94b main() --> main(void) diff -r c38f1f42ee02 -r aa166b26298d configure --- 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 #include #include -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 #include -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 -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 -int main() +int main(void) { const char **langs; size_t langcnt; @@ -7064,7 +7064,7 @@ cat > $TMPC < $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"