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

From: Stefan Farfeleder <stefan_at_fafoe.narf.at>
Date: Mon, 15 Jun 2009 21:54:23 +0200
On Mon, Jun 15, 2009 at 11:38:33AM -0700, Sam Leffler wrote:
> 
> Are you saying that:
> 
> if (cond)
>    ;
> 
> is considered worthy of a warning by the compiler?  Is it just "if" or all 
> conditional control constructs (e.g. while)?
> 
> I can image many instances of this construct arising from debugging 
> facilities.  This sounds like a stupid restriction and I would argue we 
> should just disable the warning.

GCC warns too with -Wextra.
Received on Mon Jun 15 2009 - 18:14:09 UTC

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