此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
备注
访问此页面需要授权。 可以尝试登录或更改目录。
访问此页面需要授权。 可以尝试更改目录。
用 __declspec(noreturn) 声明的函数有返回语句
在用 noreturn __declspec 修饰符标记的函数中发现了 return 语句。 忽略 return 语句。
__declspec
return
下面的示例生成 C4645:
// C4645.cpp // compile with: /W3 void __declspec(noreturn) func() { return; // C4645, delete this line to resolve } int main() { }
此页面是否有帮助?