From 5adfa09fce2c61239f9a7fa5fb154282f802af0a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 17 Jun 2007 18:22:39 +0000 Subject: r13477@catbus: nickm | 2007-06-17 14:22:03 -0400 Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere. svn:r10645 --- src/or/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/dns.c') diff --git a/src/or/dns.c b/src/or/dns.c index 764ce843b9..26daf39fb2 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -103,7 +103,7 @@ static int dns_resolve_impl(edge_connection_t *exitconn, int is_resolve, static void _assert_cache_ok(void); #define assert_cache_ok() _assert_cache_ok() #else -#define assert_cache_ok() do {} while (0) +#define assert_cache_ok() STMT_NIL #endif static void assert_resolve_ok(cached_resolve_t *resolve); -- cgit v1.2.3-54-g00ecf