mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
b96ad4b205
commit
f7490cfe01
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue