“identifier”:“void”函数返回值
该函数声明为 void
但返回值。
此错误可能是由函数原型不正确引起的。
如果在函数声明中指定返回类型,则可能会修复此错误。
以下示例生成 C2562:
// C2562.cpp
// compile with: /c
void testfunc() {
int i;
return i; // C2562 delete the return to resolve
}
“identifier”:“void”函数返回值
该函数声明为 void
但返回值。
此错误可能是由函数原型不正确引起的。
如果在函数声明中指定返回类型,则可能会修复此错误。
以下示例生成 C2562:
// C2562.cpp
// compile with: /c
void testfunc() {
int i;
return i; // C2562 delete the return to resolve
}