From a9f04c7573d09533ba69b84b278a5675d89b450e Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 25 Oct 2005 13:08:52 +0000 Subject: [PATCH] Only do the extra va_* stuff if we're compiling with the compiler that cares about it (PGI). This commit was SVN r7860. --- ompi/datatype/datatype_internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ompi/datatype/datatype_internal.h b/ompi/datatype/datatype_internal.h index e2c9413f9d..972508dc9a 100644 --- a/ompi/datatype/datatype_internal.h +++ b/ompi/datatype/datatype_internal.h @@ -51,11 +51,13 @@ static inline void DUMP( char* fmt, ... ) # define DUMP(ARGS...) # else static inline void DUMP( char* fmt, ...) { +#if defined(__PGI) /* Some compilers complain if we have ... and no corresponding va_start() */ va_list arglist; va_start(arglist, fmt); va_end(arglist); +#endif } # endif /* __GNUC__ && !__STDC__ */ # endif /* ACCEPT_C99 */