C5917: Removed dead assignment

[WARNING]

Description

The Compiler has detected that there is an assignment to a (local) variable which is not used afterwards. This message may be generated during tree optimizations (Option -Ont to switch it off).

Example
    int a;

  
    ...

  
    a = 3 // message C5917 here ...

  
  } // end of function

  
Tips

If you want to avoid this optimization, you can declare the variable as volatile.