[RFC]: (void)0 instead of empty defines
Stefan Farfeleder
stefan at fafoe.narf.at
Mon Jun 15 20:14:09 UTC 2009
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.
More information about the freebsd-current
mailing list