编译器警告(等级 3)C4102

“label”: 未引用的标签

定义了标签,但从未引用过。 编译器忽略该标签。

下面的示例生成 C4102:

// C4102.cpp
// compile with: /W3
int main() {
   int a;

   test:   // C4102, remove the unreferenced label to resolve

   a = 1;
}