Messages in this thread | | | Subject | Re: Announce: gcc bogus warning repository | From | Roland Dreier <> | Date | Sun, 01 Oct 2006 13:24:04 -0700 |
| |
Andrew> The downsides are that it muckies up the source a little Andrew> and introduces a very small risk that real Andrew> use-uninitialised bugs will be hidden. But I believe the Andrew> benefit outweighs those disadvantages.
Not sure I agree -- it adds one more thing that must be maintained when reorganizing code. I think there is a pretty high risk of this sort of warning silencing hiding a bug introduced later, which would have triggered an "is used uninitialized" warning.
Perhaps asking for a gcc flag that turns off "may be used" warnings but leaves "is used" warnings would be useful (or does it already exist?) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |