svn commit: r194575 - head/sys/kern
Roman Divacky
rdivacky at FreeBSD.org
Sun Jun 21 07:54:48 UTC 2009
Author: rdivacky
Date: Sun Jun 21 07:54:47 2009
New Revision: 194575
URL: http://svn.freebsd.org/changeset/base/194575
Log:
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@
Modified:
head/sys/kern/sysv_msg.c
Modified: head/sys/kern/sysv_msg.c
==============================================================================
--- head/sys/kern/sysv_msg.c Sun Jun 21 07:34:12 2009 (r194574)
+++ head/sys/kern/sysv_msg.c Sun Jun 21 07:54:47 2009 (r194575)
@@ -80,7 +80,7 @@ static int sysvmsg_modload(struct module
#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);
More information about the svn-src-head
mailing list