Enable Clang’s -Wconditional-uninitialized
to warn on potential uninitialized reads.
Clang’s -Wconditional-uninitialized
warns in cases where a simple control flow analysis cannot prove that a variable was written to prior to each use.
Diagnostics texts:
0warning: variable foo may be uninitialized when used here
1warning: variable foo may be uninitialized when captured by block