Skip site navigation (1) Skip section navigation (2)

Re: CVS HEAD compile warning

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>,Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: CVS HEAD compile warning
Date: 2004-02-25 23:03:07
Message-ID: 200402252303.i1PN37Y11464@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Neil Conway wrote:
> $ cd src/interfaces/ecpg
> $ make
> [ ... ]
> 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
> pgc.l:979: warning, -s option given but default rule can be matched
>

FYI, I am not seeing this with my flex 2.5.4 and bison 1.875:

---------------------------------------------------------------------------

(2) touch preproc.y
(2) touch pgc.l
(2) gmake
gmake -C ../../../../src/port all
gmake[1]: Entering directory
`/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/port'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory
`/usr/var/local/src/gen/pgsql/CURRENT/pgsql/src/port'
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 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -O1 -Wall -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wcast-align -Wno-error
-I./../include -I. -I../../../../src/include
-I/usr/local/include/readline -I/usr/contrib/include  -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1
-DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o preproc.o preproc.c
In file included from preproc.y:6186:
pgc.c: In function `yylex':
pgc.c:1436: warning: label `find_rule' defined but not used
preproc.y: At top level:
pgc.c:3416: warning: `yy_flex_realloc' defined but not used
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -O1 -Wall -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wcast-align -Wno-error
-I./../include -I. -I../../../../src/include
-I/usr/local/include/readline -I/usr/contrib/include  -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1
-DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o ecpg_keywords.o
ecpg_keywords.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -O1 -Wall -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wcast-align -Wno-error
-I./../include -I. -I../../../../src/include
-I/usr/local/include/readline -I/usr/contrib/include  -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1
-DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o keywords.o
keywords.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -O1 -Wall -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wcast-align -Wno-error
-I./../include -I. -I../../../../src/include
-I/usr/local/include/readline -I/usr/contrib/include  -DMAJOR_VERSION=3
-DMINOR_VERSION=1 -DPATCHLEVEL=1
-DINCLUDEDIR=\"/usr/local/pgsql/include\"
-DPKGINCLUDEDIR=\"/usr/local/pgsql/include\"   -c -o c_keywords.o
c_keywords.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -O1 -Wall -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wcast-align -Wno-error
-L../../../../src/port -L/usr/local/lib -L/usr/contrib/lib
-Wl,-rpath,/usr/local/pgsql/lib -O1 -Wall -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wcast-align preproc.o type.o
ecpg.o ecpg_keywords.o output.o keywords.o c_keywords.o
../ecpglib/typename.o descriptor.o variable.o -lssl -lcrypto -lz
-lreadline -ltermcap -lgetopt -lcompat -lipc -ldl -lm -lutil  -lpgport 
-o ecpg

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-hackers by date

Next:From: Neil ConwayDate: 2004-02-26 02:05:42
Subject: Re: CVS HEAD compile warning
Previous:From: Tom LaneDate: 2004-02-25 22:42:56
Subject: Re: CVS HEAD compile warning

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group