Subject: Re: [PATCH] net: dst_release() cleanup

From: Stephen Hemminger <[email-masked]>
Date: Mon, 7 Dec 2009 10:57:30 -0800

On Mon, 07 Dec 2009 19:12:03 +0100
Eric Dumazet <[email-masked]> wrote:

> Stephen Hemminger a écrit :
>  
> > I don't like to put actual necessary code in WARN or BUG macro
> > args because some embedded type developer is likely to build
> > with
> > 
> > #define WARN_ON(x)
> > 
> > to get rid of all warnings.
> 
> Oops, I thought WARN_ON(X) must evaluate X once, my bad, since its not documented.
> 

If done correctly, it would. The correct way to ignore warnings would be to do
something like:

#define WARN_ON(x) (x)