Re: compile warnings

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: compile warnings
Date: 2003-06-25 02:25:18
Message-ID: 200306250225.h5P2PI309655@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe Conway wrote:
> 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

Micheal Meskes has asked if anyone has an idea on how to fix this.

> -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.

I believe these are coming from bison and it is difficult to fix.

--
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

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2003-06-25 02:30:38 PHP/PgSQL *and* libpq ...
Previous Message Joe Conway 2003-06-25 02:16:55 compile warnings