Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
V6026. This value is already...
menu mobile close menu
Additional information
toggle menu Contents

V6026. This value is already assigned to the 'b' variable.

May 07 2018

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;

This diagnostic is classified as:

  • CERT-MSC56-J

You can look at examples of errors detected by the V6026 diagnostic.

Take
a chance!

Take a chance —
spin a wheel.

Prize circle Prize circle Outer ring

Congrats! You've won a 30-day trial license!

You tricked the system, well done! Get a 30-day trial as your prize!