Am Montag, dem 16.06.2025 um 14:27 -0500 schrieb Segher Boessenkool: > On Mon, Jun 16, 2025 at 08:34:23PM +0200, Martin Uecker wrote: > > Am Montag, dem 16.06.2025 um 12:56 -0500 schrieb Segher Boessenkool: > > > So, now the warning no longer does what the name says, or what its > > > documentation says. Please update the documentation at least! > > > > It still does what the documentation says: > > No, it doesn't. The manual currently says > '-Wjump-misses-init (C, Objective-C only)' > Warn if a 'goto' statement or a 'switch' statement jumps forward > across the initialization of a variable, or jumps backward to a > label after the variable has been initialized. This only warns > about variables that are initialized when they are declared. > > After this patch that is no longer what the warning does.
Ok, I see what you mean. > > Maybe there should instead be a new warning -Wjump-maybe-misses-init ? I think this would imply that it warns even when we are not sure whether it actually misses the initialization or not. But we are sure, we just sometimes consider it unproblematic. But I do not mind adding a new option if we come up with a good name. Martin