lkml.org 
[lkml]   [2011]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3.1] kbuild: implement several W= levels
On Tue, Apr 26, 2011 at 09:52:35PM +0200, Michal Marek wrote:
> On 22.4.2011 19:50, Borislav Petkov wrote:
> > From: Sam Ravnborg <sam@ravnborg.org>
> >
> > Building a kernel with "make W=1" produce far too much noise
> > to be usefull.
> >
> > Divide the warning options in three groups:
> >
> > W=1 - warnings that may be relevant and does not occur too often
> > W=2 - warnings that occur quite often but may still be relevant
> > W=3 - the more obscure warnings, can most likely be ignored
> >
> > When building init/ on my box the levels produces:
> >
> > W=1 - 46 warnings
> > W=2 - 863 warnings
> > W=3 - 6496 warnings
>
> I guess these numbers are not valid after your changes? Not that the
> exact numbers are important, but maybe the distribution change?

I think so too that those numbers don't mean a lot. Instead, this
feature makes more sense IMHO if you use it on a single file:

make W=1 <file.c> 2>before.log

<make your changes>

make W=1 <file.c> 2>after.log

diff -uprN before.log after.log

and you let the compiler tell you which warnings you've introduced. Then
you do the same game with W=2 and W=3.

Nice, huh. :)

--
Regards/Gruss,
Boris.


\
 
 \ /
  Last update: 2011-04-26 22:45    [W:0.141 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site