[mpich2-commits] r7493 - mpich2/trunk/confdb
balaji at mcs.anl.gov
balaji at mcs.anl.gov
Wed Nov 24 03:18:34 CST 2010
Author: balaji
Date: 2010-11-24 03:18:34 -0600 (Wed, 24 Nov 2010)
New Revision: 7493
Modified:
mpich2/trunk/confdb/aclocal_cc.m4
Log:
-Wdeclaration-after-statement should only be enabled for C89 builds.
Modified: mpich2/trunk/confdb/aclocal_cc.m4
===================================================================
--- mpich2/trunk/confdb/aclocal_cc.m4 2010-11-24 07:02:38 UTC (rev 7492)
+++ mpich2/trunk/confdb/aclocal_cc.m4 2010-11-24 09:18:34 UTC (rev 7493)
@@ -467,6 +467,9 @@
# values, but they are structs of a single basic type (used to enforce
# type checking for relative vs. absolute ptrs), and with optimization
# the aggregate value is converted to a scalar.
+ # -Wdeclaration-after-statement -- This is a C89
+ # requirement. When compiling with C99, this should be
+ # disabled.
# the embedded newlines in this string are safe because we evaluate each
# argument in the for-loop below and append them to the CFLAGS with a space
# as the separator instead
@@ -483,7 +486,6 @@
-Wmissing-declarations
-Wno-long-long
-Wfloat-equal
- -Wdeclaration-after-statement
-Wundef
-Wno-endif-labels
-Wpointer-arith
@@ -567,6 +569,7 @@
PAC_APPEND_FLAG([-std=c99],[pac_cc_strict_flags])
elif test "${enable_c89}" = "yes" ; then
PAC_APPEND_FLAG([-std=c89],[pac_cc_strict_flags])
+ PAC_APPEND_FLAG([-Wdeclaration-after-statement],[pac_cc_strict_flags])
fi
fi
More information about the mpich2-commits
mailing list