|
![]() Click on image to see enlargment |
|
PC-lint/FlexeLint Output | Reference Manual Explanation | Home bug578.cpp
For the big Labor Day (mixed boat) regatta, Mike, a better sailor than programmer, wanted to apply the latest yacht racing formulae for the competing ships. But something is going wrong with this test program. What is it? bug578.cpp lint Output
--- Module: bug578.cpp (C++)
_
{
bug578.cpp(14) : Warning 578: Declaration of symbol 'rating' hides symbol 'rating' (line 4)
_
}
bug578.cpp(17) : Warning 550: Symbol 'rating' (line 13) not accessed
Reference Manual Explanation
578 Declaration of symbol 'Symbol' hides symbol 'Symbol' (Location) -- A local symbol
has the identical name as a global symbol (or possibly another local symbol).
This could be dangerous. Was this deliberate? It is usually best to rename
the local symbol.
If you have comments or questions about this bug, please post them to our Discussion Forum |
Previous Bug - Bug #522 - August 2008