> The compiler complains about line 8:
> warning: file.c: set and not used: tmp
>
> 1 void freelist(lnode **list)
> 2 {
> 3    lnode *tmp;
> 4
> 5   while( *list != nil){
> 6     tmp = *list;
> 7    *list = (*list)->next;
> 8    tmp = freenode(tmp);
> 9   }
>    *list = nil;
> }

The compiler is telling you that line 8 might as well read:

> 8    freenode(tmp);

The value you store in tmp is never used.

Russ

Reply via email to