C5910: Label removed

[DISABLE, INFORMATION , WARNING, ERROR]

Description

The Compiler has detected a label which can be optimized . This message may be generated during tree optimizations (Option -Ont to switch it off).

Example
  switch(i) {

  
    Label: i = 0;  // Labeled removed

  
     ...

  
  if (cond) {

  
    L2:  // L2 not referenced: Label removed

  
    ...

  
  } else {

  
  }

  
Tips

Do not use normal labels in switch statements. If it is a switch case label, do not forget to add the 'case' keyword.