[Top][All Lists]

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

Re: %destructor feedback

From: Joel E. Denny
Subject: Re: %destructor feedback
Date: Sat, 3 Dec 2005 08:55:33 -0500 (EST)

On Sat, 3 Dec 2005, Akim Demaille wrote:

How about this:

  /* Suppress unused-variable warnings by "using" E.  */
  static int yyunused;
  #define YYUSE(e) yyunused = (int*) &(e) && yyunused

That cast doesn't seem to serve much purpose.  I'm not sure why I left it.

No unused variables (as long as YYUSE is used somewhere)

YYUSE(yyunused)  :)

How oxymoronic.

Because of yysymprint() at least, I assumed YYUSE() would never go unused. But I guess you never know where code evolution will take you.


reply via email to

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