nschmans

Warning: Variable anon43 in <function name> might be used uninitialized

Discussion created by nschmans on Sep 24, 2009
Latest reply on Oct 2, 2009 by nschmans

when compiling with -O3, opencc issues warnings for unitialized variables, that look like this:

Warning: Variable anon43 in <function name> might be used uninitialized

where i've replaced the function name with <function name>.

The problem is that 'anon43' is not a variable name in this function.  The compiler always names the variable in question 'anon##', where ## is some number.  So I have to play a guessing game as to which variable it refers to.  This is easy if the number of variables is small, but generally not.  Is there any way to discover which variable the compiler is complaining about?

Outcomes