# HG changeset patch # User diego # Date 1174262091 0 # Node ID 65edb9a9c71001eb709a85b546ede28daa2eb64b # Parent 6ddfa5da1286c4260366ac37eb98628eb63eeb47 The -Wdeclaration-after-statement test needs a C program. Noticed by Carl Eugen Hoyos. diff -r 6ddfa5da1286 -r 65edb9a9c710 configure --- a/configure Sun Mar 18 23:18:09 2007 +0000 +++ b/configure Sun Mar 18 23:54:51 2007 +0000 @@ -7416,6 +7416,9 @@ CXXFLAGS="-I.. $CFLAGS -D__STDC_LIMIT_MACROS" +cat > $TMPC << EOF +int main() { return 0; } +EOF if cc_check -Wdeclaration-after-statement ; then CFLAGS="-Wdeclaration-after-statement $CFLAGS" fi