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

From: Roland Dreier
Date: Wed May 10 2006 - 19:06:30 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/