From 82caceda0867906f13ad93d9e7688bc5ac2d1a28 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 17 Apr 2007 03:10:06 +0000 Subject: [PATCH] A minor change to ROMIO's configure script: make it use exactly the same "restrict" check as the top-level OMPI configure.ac script so that it will guarantee to always get the same result. Therefore, the #define for restrict will always have the same value in both opal_config.h and romioconf.h, and we get 7 less warnings (6 in the IO ROMIO component, 1 in ROMIO itself) when compiling with icc on Linux (because PAC_C_RESTRICT and AC_C_RESTRICT would get different values for the "restrict" #define in this case). This commit was SVN r14387. --- ompi/mca/io/romio/romio/configure.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ompi/mca/io/romio/romio/configure.in b/ompi/mca/io/romio/romio/configure.in index 00aad57833..0576419402 100644 --- a/ompi/mca/io/romio/romio/configure.in +++ b/ompi/mca/io/romio/romio/configure.in @@ -1987,7 +1987,12 @@ else F77MPIOINC="include 'mpiof.h'" fi -PAC_C_RESTRICT +# Open MPI: use the exact same restrict test that we use in the +# upper-level Open MPI configure script so that we always get the same +# #define for "restrict" (there are a small number of files that will +# end up including both ROMIO's romioconf.h and opal_config.h, so we +# need to #defines to agree). +AC_C_RESTRICT PAC_C_GNU_ATTRIBUTE # dnl CFLAGS="$CFLAGS $DEFS"