分享方式:


編譯器警告 (層級 3) C4102

'label': 未參考的標籤

標籤已定義但從未參考。 編譯器會忽略標籤。

下列範例會產生 C4102:

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

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

   a = 1;
}