|
PC-lint/FlexeLint Output | Reference Manual Explanation | Home Page bug602.cpp
The programmer was surprised when his program reported that 20 / 4 equaled 20. What's going wrong?
bug602.cpp lint Output
--- Module: bug602.cpp
_
if(*p) return *q/*p /* compute ratio */ ;
bug602.cpp(5) : Warning 602: Comment within comment
Reference Manual Explanation
602 Comment within comment -- The sequence /* was found within a
comment. Was this deliberate? Or was a comment end inadvertently
omitted? If you want FlexeLint/PC-lint to recognize nested
comments you should set the Nested Comment flag using the +fnc
option. Then this warning will not be issued. If it is your
practice to use
/*
/* */
then use -e602.
|
Previous Bug - Bug #1529 - January 2001