编译器警告(等级 3)C4646

用 __declspec(noreturn) 声明的函数有非 void 返回类型

标记有 noreturn__declspec 修饰符的函数应有 void 返回类型。

下面的示例生成 C4646:

// C4646.cpp
// compile with: /W3 /WX
int __declspec(noreturn) TestFunction()
{   // C4646  make return type void
}