]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In non-debugging mode make this define (void)0 instead of nothing. This
authorRoman Divacky <rdivacky@FreeBSD.org>
Sun, 21 Jun 2009 09:01:12 +0000 (09:01 +0000)
committerRoman Divacky <rdivacky@FreeBSD.org>
Sun, 21 Jun 2009 09:01:12 +0000 (09:01 +0000)
commit20a0556c59332912ec603b3d3164fa9176cec8b6
tree04572ff6acc27b683f08d6ed71bcd534579198ed
parent2b7d10c225f7a5c9d8ea6864c5df462cf120bb6b
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