範例
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;
}