|
![]() Click on image to see enlargment |
|
PC-lint/FlexeLint Output | Reference Manual Explanation | Home bug681.cpp
In an effort to examine evidence of global warming (or cooling) the programmer wrote this function but the results were quite unexpected. What's going wrong? bug681.cpp lint Output
--- Module: bug681.cpp (C++)
_
for( int i = LAST_YEAR; i <= FIRST_YEAR; i-- )
bug681.cpp(12) : Warning 681: Loop is not entered
Reference Manual Explanation
681 Loop is not entered -- The controlling expression for a loop
(either the expression within a while clause or the second
expression within a for clause) evaluates initially to 0 and so
it appears as though the loop is never entered.
If you have comments or questions about this bug, please post them to our Discussion Forum |
Previous Bug - Bug #428 - July 2006