此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
用 __declspec(noreturn) 声明的函数有非 void 返回类型
标记有 noreturn__declspec 修饰符的函数应有 void 返回类型。
__declspec
下面的示例生成 C4646:
// C4646.cpp // compile with: /W3 /WX int __declspec(noreturn) TestFunction() { // C4646 make return type void }
此页面是否有帮助?