Re: Announce: gcc bogus warning repository

Daniel Walker
2006-10-01T15:40:24Z

On Sun, 2006-10-01 at 09:44 -0400, Jeff Garzik wrote:
> The level of warnings in a kernel build has lately increased to the
> point where it is hiding bugs and otherwise making life difficult.
>
> In particular, recent gcc versions throw warnings when it thinks a
> variable "MAY be used uninitialized", which is not terribly helpful due
> to the fact that most of these warnings are bogus.
>
> For those that may find this valuable, I have started a git repo that
> silences these bogus warnings, after careful auditing of code paths to
> ensure that the warning truly is bogus.
>
> The results may be found in the "gccbug" branch of
> git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6.git
>

Steven Rostedt an I worked on this problem in May. Steven came up with,
a nice way to handle these warnings, which doesn't increase code size.
Here's the post if your interested.

http://lkml.org/lkml/2006/5/11/50

Daniel