Hi!

On Tue, Aug 19, 2025 at 06:33:25PM +0200, Martin Uecker wrote:
> Here is another attempt to improve the situation with uninitialized
> variables.  Instead of modifying -Wjump-misses-init, it adds a new
> warning that is called -Wuse-after-missed-init.  
> 
> Thoughts?  Should this go into -Wall or only -Wextra?

-Wall is for warnings with a great usefulness vs. amount of false
positives tradeoff.  -W is for those warnings that are still quite
useful, but where the tradeoff tilts more the other way, "warnings that
are more noisy".

It is a judgment call no matter what, none of the attributes here can
really be measured (or even defined).  Most of the time it is pretty
clear though.  You'll need to try it out on a pretty big (and varied)
corpus of code before you can really be sure, of course.

In the end you'll need to make a decision whilst you have only partial
data.  If it turns out you balanced not so super well, you can always
correct that later ;-)


Segher

Reply via email to