Subject: Re: problem with yacc/lex
To: Darren Reed <darrenr@reed.wattle.id.au>
From: Jaromír Dolecek <dolecek@ibis.cz>
List: tech-userlevel
Date: 10/23/2000 19:17:54
Darren Reed wrote:
> Compiling up some lex/yacc code, I get this:
> 
> cc1: warnings being treated as errors
> lex.yy.c:1121: warning: `yyunput' defined but not used
> *** Error code 1
> 
> *nowhere* is this function used or called (by my code).
> 
> I have other lex/yacc files which compile cleanly.  I'm
> at a loss to explain the difference.
> 
> Clues, anyone ?

It seems you need to
#define YY_NO_INPUT

in your lex source.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
@@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@