[Bug c/87038] diagnostics: Please add warning for jumping over initializers with switch/case in C mode
segher at gcc dot gnu.org
Mon Oct 22 14:55:00 GMT 2018
--- Comment #20 from Segher Boessenkool <segher at gcc dot gnu.org> ---
That is still not what I said, so don't pretend I did please.
Those are also not false positives: in all these cases, the program does
in fact skip some initialisation.
But, it seems -Wjump-misses-init is not what you want; you do not want a
warning for jumping over initialisers, it warns for a lot of harmless code.
What you want is a warning that only warns if the var is (potentially) used
More information about the Gcc-bugs