共用方式為


編譯器警告 (層級 3) C4645

使用 __declspec(noreturn) 宣告的函式有傳回的陳述式

在函式中找到以 noreturn __declspec 修飾詞標記的 return 陳述式。 已忽略 return 陳述式。

下列範例會產生 C4645:

// C4645.cpp
// compile with:  /W3
void __declspec(noreturn) func() {
   return;   // C4645, delete this line to resolve
}

int main() {
}