summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTony Finch <dot@dotat.at>2011-03-03 15:08:05 +0000
committerTony Finch <dot@dotat.at>2011-03-03 15:08:05 +0000
commit1b587e48d9bb95e6e7d9b3f482a9e4460b6ab130 (patch)
tree2362bf6fb449a2878c1d953c481a311da625159d /src
parent552193f0d6f4281f0d61d359f126d2236edcd181 (diff)
Another valgrind.h portability fix.
C89 compilers do not support variable argument macros. Our copy of valgrind.h now differs from upstream. Reported-by: Heiko Schlichting <heiko.schlichting@fu-berlin.de>
Diffstat (limited to 'src')
-rw-r--r--src/src/valgrind.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/src/valgrind.h b/src/src/valgrind.h
index 0bae0aa13..4d41690ab 100644
--- a/src/src/valgrind.h
+++ b/src/src/valgrind.h
@@ -4417,8 +4417,13 @@ vg_VALGRIND_DO_CLIENT_REQUEST_EXPR(uintptr_t _zzq_default,
#if defined(NVALGRIND)
-# define VALGRIND_PRINTF(...)
-# define VALGRIND_PRINTF_BACKTRACE(...)
+/* In Exim the following two lines have been changed from the original
+ version for portability to C89 compilers that don't support variable
+ argument macros. We don't use these macros so it doesn't matter much what
+ we do with them, but the following will work OK in most situations though
+ it may cause complaints about expressions without side-effects. */
+# define VALGRIND_PRINTF (void)
+# define VALGRIND_PRINTF_BACKTRACE (void)
#else /* NVALGRIND */