Re: [PATCH -mm] sys_semctl gcc 4.1 warning fix

Roland Dreier
2006-05-10T23:06:56Z

David> IMHO, the tree should build with -Werror without exception.
David> Once you have that basis, new ones will not show up easily
David> and the hard part of the battle has been won.

It's a great goal, but which gcc version and architecture do you
declare has to build the kernel with -Werror? Every gcc version and
platform produces a different set of warnings. And what do you do
when all released versions of gcc produce a false positive warning?

The problem is that fixing false positive warnings often leads people
to write unnatural code that may hide future bugs (and in fact may be
buggy even when written).

- R.