From f7490cfe01250efee9a54b0c2186d73f279bca9a Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Sun, 21 Jun 2009 07:54:47 +0000 Subject: [PATCH] In non-debugging mode make this define (void)0 instead of nothing. This helps to catch bugs like the below with clang. if (cond); <--- note the trailing ; something(); Approved by: ed (mentor) Discussed on: current@ --- sys/kern/sysv_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index 89de07cabac..150d9bdf491 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -80,7 +80,7 @@ static int sysvmsg_modload(struct module *, int, void *); #ifdef MSG_DEBUG #define DPRINTF(a) printf a #else -#define DPRINTF(a) +#define DPRINTF(a) (void)0 #endif static void msg_freehdr(struct msg *msghdr);