This website uses cookies and other technology to provide you a more personalized
experience. By
continuing the view of our web-pages you accept the terms of using these files. If you
don't
want your personal data to be processed, please, leave this site.
Learn More →
V3037. An odd sequence of assignments of this kind: A = B; B = A;
The analyzer has detected a possible error that has to do with meaningless variable assignments.
Consider this example:
int a, b, c;
...
a = b;
c = 10;
b = a;
The "B = A" assignment statement in this code does not make sense. It might be a typo or just unnecessary operation. This is what the correct version of the code should look like:
a = b;
c = 10;
b = a_2;
You can look at examples of errors detected by the V3037 diagnostic. |