Closed rrthomas closed 5 years ago
Interesting that GCC does not warn. On every path that reaches this switch
the selector is a compile-time constant. Apparently GCC understands that and Clang does not.
I'm happy with suppressing this warning, but it might be better to initialise the variables to a dummy value.
Clang reports this for the code generated by:
The
state_
n variables (specifically here,state_4
with current head of branchappveyor-fixes
) can be uninitialised when flushed. Not a problem (?) but I guess we should turn off the warning explicitly?