示例
static void
foo(){
printf(
"foo is not called in this file"
);
}
int
main(
int
argc,
char
* argv[])
{
return
0;
}
解决方案
使用 static 函数或将其从文件中除去。
static void
foo(){
printf(
"foo is not called in this file"
);
}
int
main(
int
argc,
char
* argv[])
{
foo();
return
0;
}