help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning: unused value: $3


From: henrik . sorensen
Subject: Re: warning: unused value: $3
Date: Thu, 26 Oct 2006 20:29:31 +0200
User-agent: KMail/1.9.1

On Thursday 26 October 2006 02:27, Joel E. Denny wrote:
> > Line 873 contains: |  procoptionlist ',' {$$=$1;} procoption {$$=$1;}
> > $3 refers to the embedded action after the comma.
>
> In the last semantic action above, write:
>
>   USE($3)
>
> > My grammar set a number of attributes in an allocated structure using $0
> > to reference the structure on the stack. The full rules are as follow
>
> How frequently do you do this in your grammar?  In other words, how
> painful will it be to add the USE macro invocation to all those rules?
I could change the rule to
procoptionlist ',' {$$=$1;} procoption {$$=$3;}

and the warning will be gone. 

Thanks for your suggestions
Henrik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]