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@
This commit is contained in:
Roman Divacky 2009-06-21 07:54:47 +00:00
parent b96ad4b205
commit f7490cfe01

View file

@ -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);