summaryrefslogtreecommitdiff
path: root/dbus/dbus-valgrind-internal.h
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-10-12 21:52:03 +0530
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-11-09 14:04:27 +0000
commite516a31f59abbbf7cbfcc3396ef41162188a7f5c (patch)
tree98f979693460b02226a9740f55f28f7bba28db4e /dbus/dbus-valgrind-internal.h
parent62aec8838a2d3841c5f1377c6eef429a7df84aed (diff)
downloaddbus-e516a31f59abbbf7cbfcc3396ef41162188a7f5c.tar.gz
Fix building with newer Valgrind
Newer valgrind (tried with 3.8.0) defines macros so that a terminating semi-colon is required. This fixes usage to follow that convention. [edited to remove comments that are no longer useful -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55932 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'dbus/dbus-valgrind-internal.h')
-rw-r--r--dbus/dbus-valgrind-internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbus/dbus-valgrind-internal.h b/dbus/dbus-valgrind-internal.h
index 55566ec0..6760b40d 100644
--- a/dbus/dbus-valgrind-internal.h
+++ b/dbus/dbus-valgrind-internal.h
@@ -32,10 +32,10 @@
# include <memcheck.h>
# include <valgrind.h>
#else
-# define VALGRIND_CREATE_MEMPOOL(_1, _2, _3) /* nothing */
-# define VALGRIND_DESTROY_MEMPOOL(_1) /* nothing */
-# define VALGRIND_MEMPOOL_ALLOC(_1, _2, _3) /* nothing */
-# define VALGRIND_MEMPOOL_FREE(_1, _2) /* nothing */
+# define VALGRIND_CREATE_MEMPOOL(_1, _2, _3) do { } while (0)
+# define VALGRIND_DESTROY_MEMPOOL(_1) do { } while (0)
+# define VALGRIND_MEMPOOL_ALLOC(_1, _2, _3) do { } while (0)
+# define VALGRIND_MEMPOOL_FREE(_1, _2) do { } while (0)
/* Recent gcc will warn if you have a statement that's just a macro
* expanding to (0), but not if you have an inline stub function that