Function defined but not used in C
Posted
by thetna
on Stack Overflow
See other posts from Stack Overflow
or by thetna
Published on 2010-05-12T12:42:57Z
Indexed on
2010/05/12
12:54 UTC
Read the original article
Hit count: 154
c
|compiler-warnings
I have following code:
static __inline__ LIST list_List(POINTER P)
{
return list_Cons(P,list_Nil());
}
After compilation I got following warning:
inlining is unlikely but function size may grow
I removed the inline and changed into the following :
static LIST list_List(POINTER P)
{
return list_Cons(P,list_Nil());
}
Now I get the following warning:
list_List is defined but not used.
Can anybody please suggest me how can remove that warning.
© Stack Overflow or respective owner