changeset 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 6ddfa5da1286
children d253a533a96d
files configure
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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