https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87038

--- Comment #23 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to Eric Gallager from comment #22)
> (In reply to Harald van Dijk from comment #21)
> > Since -Wjump-misses-init triggers too often for commonly used C patterns,
> > I do not think it is appropriate to include it in -Wall. 
> 
> OK, so what about -Wextra then?

My personal feeling as a user is that clang's warning is useful enough that if
GCC were to implement that, that one could be included in -Wall. It avoids
warning for the common cases where code works as intended, and still manages to
warn for the OP's code. I do not know how much work it would be to implement
that; if it would be too much work, then including -Wjump-misses-init in
-Wextra makes sense to me.

Reply via email to