[RFC]: (void)0 instead of empty defines

Tim Kientzle kientzle at freebsd.org
Tue Jun 16 03:44:00 UTC 2009


> Are you saying that:
> 
> if (cond)
>    ;
> 
> is considered worthy of a warning by the compiler?

Yes, especially when it's written as:

    if (rare_condition);
        do_something_dangerous();

Tim



More information about the freebsd-current mailing list