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

From: Tim Kientzle <kientzle_at_freebsd.org>
Date: Mon, 15 Jun 2009 20:43:59 -0700
> 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
Received on Tue Jun 16 2009 - 01:44:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:50 UTC