Re: [RFC PATCH] kbuild: implement several W= levels

Sam Ravnborg
2011-04-22T01:28:42Z

> Just started looking at the patch.
> I tested it and -Wnested-externs is causing a *lot* of noise, because of
> the nested extern ‘_NSIG_WORDS_is_unsupported_size’ in
> include/linux/signal.h, which gets included a lot.
> So, unless that changes, I think that it shouldn't be enabled for W=1.

It is just the same issue that pops up for each file.
It is easy to fix.

The ones that does not belong in W=1 is those that are triggered
by many different places in the kernel.

If they are triggered in a few .h files they look noisy, but
it is easy to fix.

Sam