compile warnings - Mailing list pgsql-hackers

From Joe Conway
Subject compile warnings
Date
Msg-id 3EF90617.7000308@joeconway.com
Whole thread Raw
Responses Re: compile warnings
Re: compile warnings
List pgsql-hackers
Since we're getting close to a freeze, I thought I'd point out these 
warnings again:

make[4]: Entering directory `/opt/src/pgsql/src/interfaces/ecpg/pgtypeslib'
[...]
i386-redhat-linux-gcc -O2 -g -Wall -Wmissing-prototypes 
-Wmissing-declarations -fpic -I../../../../src/interfaces/ecpg/include 
-I../../../../src/include/utils -I../../../../src/include 
-I/usr/kerberos/include -g  -c -o timestamp.o timestamp.c -MMD
timestamp.c: In function `dttofmtasc_replace':
timestamp.c:468: warning: `%g' yields only last 2 digits of year
timestamp.c:606: warning: `%x' yields only last 2 digits of year in some 
locales

-and-

make[4]: Entering directory `/opt/src/pgsql/src/interfaces/ecpg/preproc'
[...]
i386-redhat-linux-gcc -O2 -g -Wall -Wmissing-prototypes 
-Wmissing-declarations -Wno-error -I./../include -I. 
-I../../../../src/include -I/usr/kerberos/include -DMAJOR_VERSION=3 
-DMINOR_VERSION=0 -DPATCHLEVEL=0 -DINCLUDE_PATH=\"/usr/include\"   -c -o 
preproc.o preproc.c -MMD
In file included from preproc.y:6189:
pgc.c: In function `yylex':
pgc.c:1386: warning: label `find_rule' defined but not used
/usr/include/ctype.h: At top level:
pgc.c:3377: warning: `yy_flex_realloc' defined but not used

Other than these 4 warnings, I get a clean compile on Red Hat 9 and 8.0 
systems.

Joe



pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: Two weeks to feature freeze
Next
From: Bruce Momjian
Date:
Subject: Re: compile warnings