B
bugzilla
hi, all.
I want to know which flag can be used to give me a warning that one
declared function is not called in the program. for example:
#include <stdio.h>
int Nouse();
int main()
{
printf("Hello,world!");
}
int Nouse()
{
printf("I am used!");
}
I want gcc can tell me that althoug int Nouse() was declared and
implemented, but it is not called in the program. I tried to use
-Wall, but it doesnot work.
thanks.
I want to know which flag can be used to give me a warning that one
declared function is not called in the program. for example:
#include <stdio.h>
int Nouse();
int main()
{
printf("Hello,world!");
}
int Nouse()
{
printf("I am used!");
}
I want gcc can tell me that althoug int Nouse() was declared and
implemented, but it is not called in the program. I tried to use
-Wall, but it doesnot work.
thanks.