Re: Warnings compiling preproc.y - Mailing list pgsql-hackers

From Neil Conway
Subject Re: Warnings compiling preproc.y
Date
Msg-id 42C9D31E.2050008@samurai.com
Whole thread Raw
In response to Warnings compiling preproc.y  (Victor Yegorov <viy@mits.lv>)
List pgsql-hackers
Victor Yegorov wrote:
> Compiling HEAD I see the following 2 warnings:

> bison -y -d  preproc.y
> mv -f y.tab.c ./preproc.c
> mv -f y.tab.h ./preproc.h
> /usr/bin/flex  -o'pgc.c' pgc.l
> gcc -O2 -ggdb -DBITMAP_DEBUG -Wall -Wmissing-prototypes -Wpointer-arith
> -Wendif-labels -fno-strict-aliasing -g -Wno-error  -I./../include -I.
> -I../../../../src/include -D_GNU_SOURCE  -DMAJOR_VERSION=4 -DMINOR_VERSION=1
> -DPATCHLEVEL=1  -c -o preproc.o preproc.c -MMD
> In file included from preproc.y:6416:
> pgc.c: In function `yylex':
> pgc.c:1503: warning: label `find_rule' defined but not used
> preproc.y: At top level:
> pgc.c:3559: warning: `yy_flex_realloc' defined but not used
> 
> Should those variables be removed?

These warnings aren't new; the fault lies in the C code generated by 
flex, so the problem is not simple to fix.

-Neil


pgsql-hackers by date:

Previous
From: Neil Conway
Date:
Subject: Re: [PATCHES] [PATCH] pgcrypto: pgp_encrypt v3
Next
From: Robert Treat
Date:
Subject: Re: [PATCHES] Dbsize backend integration