The analyzer has detected a potential error in an expression where an unsigned variable is compared to a negative number. This is a rather rare situation and such a comparison is not always an error. However, getting the V605 warning is a good reason to review the code.
This is an example of code the V605 warning will be generated for:
unsigned u = ...;
if (u < -1)
{ ... }
This diagnostic is classified as:
|
You can look at examples of errors detected by the V605 diagnostic. |
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders:
Take
a chance!