On Mon, 5 Dec 2005, Paul Eggert wrote:

"Joel E. Denny" <[EMAIL PROTECTED]> writes:

for the current YYUSE definition, I do see this warning:

   warning: logical expression always false: op "&&"

As I understood it, this will happen with ancient lint implementations
that don't support CONSTCOND comments; it shouldn't happen with newer
lints (unless you ask them to ignore CONSTCOND comments).  But it
appears my understanding was wrong.

Your understanding was probably right. I'm not in the habit of using lint, and I'm not personally concerned about its warnings. I was trying to come up with a YYUSE() definition that would allow me to pass structs as parse-params without creating any additional lint issues for other users. Sorry, I didn't realize my lint installation was too old to be relevant.

Which implementation of lint are you using, and what options are you giving it?

/opt/SUNWspro/bin/lint -V says:

  lint: Sun C 5.5 2003/03/12

I'm not passing any options.

How would you tell your 'lint' version to not output that warning? I'd like something that works at the source code level.

No clue, and the man page didn't help.  Maybe my lint is too old.

In any case, I guess this means the new YYUSE() definition I posted might need testing with newer lints.

Joel


_______________________________________________
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to