Click on image to see enlargment
With so many deliveries on Christmas eve, Santa is finally automating his Reindeer Tabulating System but this reindeer availability function is way too optimistic. What's going wrong?
bug550.cpp lint Output
--- Module: bug550.cpp (C++) _ } bug550.cpp 21 Warning 550: Symbol 'n' (line 13) not accessed --- Wrap-up for Module: bug550.cpp Info 754: local structure member 'Reindeer::name' (line 3, file bug550.cpp) not referenced
Reference Manual Explanation
550 Symbol 'Symbol' (Location) not accessed -- A variable (local to some function) was not accessed. This means that the value of a variable was never used. Perhaps the variable was assigned a value but was never used. Note that a variable's value is not considered accessed by autoincrementing or autodecrementing unless the autoincrement/decrement appears within a larger expression which uses the resulting value. The same applies to a construct of the form: var += expression. If an address of a variable is taken, its value is assumed to be accessed. An array, struct or union is considered accessed if any portion thereof is accessed.
Previous Bug - Bug #767 - November 2012