Bruce Momjian writes:
> Christopher Kings-Lynne wrote:
> > I don't think this is me...
> >
> > gcc -pipe -O -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-error -I
> > ./../include -I. -I../../../../src/include -DMAJOR_VERSION=2 -DMINOR_VERSIO
> > N=10 -DPATCHLEVEL=0 -DINCLUDE_PATH=\"/home/chriskl/local/include\" -c -o
> > pgc.o pgc.c
> > pgc.c: In function `yylex':
> > pgc.c:1250: warning: label `find_rule' defined but not used
> > pgc.l: At top level:
> > pgc.c:3079: warning: `yy_flex_realloc' defined but not used
>
> Yes, I have gotten the same warning for several releases but haven't
> researched the cause. Patch?
If someone is really bored out of their mind, at least one of these
warnings can be gotten rid of by not using the -l option to flex. That
might be desirable for other reasons, too, one of which is improved speed.
No, just removing -l from the makefile is not the right fix.
--
Peter Eisentraut peter_e@gmx.net