[Top][All Lists]

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

Re: %destructor feedback

From: Paul Eggert
Subject: Re: %destructor feedback
Date: Tue, 06 Dec 2005 16:37:42 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"Joel E. Denny" <address@hidden> writes:

> Did you try my static global variable solution?  It worked for my
> tests, but again it should probably be tested with other lints.

If you're talking about this one:

  static int yyunused;
  #define YYUSE(e) yyunused = (int*) &(e) && yyunused

then I suspect it will also run afoul of lint implementations that
deduce that &(e) can never be null, and print a warning.  Also, I
don't like having an unnecessary static variable around.  Also, it
won't work if e is declared to be a register, as you can't take
addresses of registers.

reply via email to

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