Re: [Q] warning BUG() related fixing and janitors question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 16, 2012 at 06:12:07PM -0300, Ezequiel García wrote:
> Hi Dan,
> 
> 2012/4/16 Dan Carpenter <dan.carpenter@xxxxxxxxxx>:
> >
> > Don't start messing in scheduler code if you have any doubts about
> > what you are doing.  My advise is don't send a patch for this
> > warning.  Most times people leave BUG() enabled so we don't really
> > care about the warning.
> 
> Okey. Perhaps I picked the wrong example, there are a whole bunch of warnings
> related to the same BUG() stuff, here's a template example:
> 
> void *p;
> 
> switch (something) {
>   case a:
>     p = foo();
>   case b:
>     p = bar();
>   default:
>     BUG();
> }
> 
> dosomething(p);
> 
> --
> 
> This will trigger warning "p could be used uninitialized" or something.
> I know most of us just leave BUG on, so you say these warnings aren't important?

Yeah.  Probably best to ignore them.

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux