This is the mail archive of the
mailing list for the GCC project.
Re: RFC: -Wall by default
Gabriel Dos Reis <firstname.lastname@example.org> writes:
> If it is the non-expert that would be caught in code so non-obvious that
> -Wuninitialized would trip into false positives, then it is highly
> likely that the code might in fact contain an error.
I wish this were the case, but alas I continue to see fairly trivial false
positives from -Wuninitialized. Usually cases where the initialization
and the use are both protected by equivalent conditionals at different
places in the function.
Personally, as a matter of *style*, I eliminate such cases either by
initializing the variable or restructuring the function. But this is very
much a question of style, not of correctness.
Russ Allbery (email@example.com) <http://www.eyrie.org/~eagle/>