Messages in this thread | | | Date | Tue, 26 Apr 2011 22:43:07 +0200 | From | Borislav Petkov <> | Subject | Re: [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.
| |