]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In non-debugging mode make this define (void)0 instead of nothing. This
authorrdivacky <rdivacky@FreeBSD.org>
Sun, 21 Jun 2009 09:01:12 +0000 (09:01 +0000)
committerrdivacky <rdivacky@FreeBSD.org>
Sun, 21 Jun 2009 09:01:12 +0000 (09:01 +0000)
commitb541bd5a39b43c11067cf9193020c5fa63df0e65
tree04572ff6acc27b683f08d6ed71bcd534579198ed
parentcc5ff80770d96ca4ca6b86009674a097e1f1fc55
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/sys/ktr.h
sys/sys/lock.h
sys/sys/lock_profile.h
sys/sys/mutex.h
sys/sys/sched.h
sys/sys/sx.h