“function”必须返回值
注解
此函数未返回值。 返回了一个未定义的值。
必须将使用 return 且没有返回值的函数声明为 void类型。
此错误针对 C 语言代码。
Example
以下示例生成 C4033:
// C4033.c
// compile with: /W1 /LD
int test_1(int x) // C4033 expected
{
if (x)
{
return; // C4033
}
}
“function”必须返回值
此函数未返回值。 返回了一个未定义的值。
必须将使用 return 且没有返回值的函数声明为 void类型。
此错误针对 C 语言代码。
以下示例生成 C4033:
// C4033.c
// compile with: /W1 /LD
int test_1(int x) // C4033 expected
{
if (x)
{
return; // C4033
}
}