|
![]() Click on image to see enlargment |
|
PC-lint/FlexeLint Output | Reference Manual Explanation | Home bug795.cpp
In determining the average wind velocity of the first 5 days of March the programmer made one of those errors that caused a bit of embarrassment during a customer demonstration. What went wrong? bug795.cpp lint Output
--- Module: bug795.cpp
_
return wind_velocity[j]/j;
bug795.cpp(13) : Info 795: Conceivable division by 0 [Reference: file bug795.cpp: line 6]
_
}
bug795.cpp(14) : Warning 550: Symbol 'sum' (line 7) not accessed
Reference Manual Explanation
795 Conceivable division by 0 -- In a division or modulus operation the division is
deduced to be conceivably 0. See Section 9.2 Value Tracking for the meaning of
"conceivable".
If you have comments or questions about this bug, please post them to our Discussion Forum |
Previous Bug - Bug #427 - February 2004