Lucky hour! Grab a free trial license — offer ends in 00:59:58. Claim now
The analyzer found suspicious condition that may contain an error of copy-paste.
The diagnosis is empirical, that is why it is easier to demonstrate it on the example than to explain the working principle of the analyzer. Consider this example:
if (m_a != a ||
m_b != b ||
m_b != c) // <=
{
....
}
Because of the similarity of the variable names, there is a typo in the code. An error is located on the third line. The variable 'c' should be compared with 'm_c' rather than with 'm_b'. It is difficult to notice the error even when reading this text. Please, pay attention to the variable names.
The right variant:
if (m_a != a ||
m_b != b ||
m_c != c)
{
....
}
If the analyzer issued the warning V6085, then carefully read the corresponding code. Sometimes it is difficult to notice a typo.
This diagnostic is classified as:
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: