comparison configure @ 22719:65edb9a9c710

The -Wdeclaration-after-statement test needs a C program. Noticed by Carl Eugen Hoyos.
author diego
date Sun, 18 Mar 2007 23:54:51 +0000
parents 363c84953547
children 404b9b4b13cd
comparison
equal deleted inserted replaced
22718:6ddfa5da1286 22719:65edb9a9c710
7414 fi 7414 fi
7415 fi 7415 fi
7416 7416
7417 CXXFLAGS="-I.. $CFLAGS -D__STDC_LIMIT_MACROS" 7417 CXXFLAGS="-I.. $CFLAGS -D__STDC_LIMIT_MACROS"
7418 7418
7419 cat > $TMPC << EOF
7420 int main() { return 0; }
7421 EOF
7419 if cc_check -Wdeclaration-after-statement ; then 7422 if cc_check -Wdeclaration-after-statement ; then
7420 CFLAGS="-Wdeclaration-after-statement $CFLAGS" 7423 CFLAGS="-Wdeclaration-after-statement $CFLAGS"
7421 fi 7424 fi
7422 7425
7423 ############################################################################# 7426 #############################################################################