Thread: compile warnings in CVS HEAD

compile warnings in CVS HEAD

From
Neil Conway
Date:
I get the following warnings when compiling CVS HEAD:

be-secure.c: In function `open_server_SSL':
be-secure.c:719: warning: assignment from incompatible pointer type

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

(That's the timestamp.c in src/interfaces/ecpg/pgtypeslib)

This build has SSL enabled (the SSL warning above has been present for a
while...). I'm using GCC 3.2.3 on Debian Linux.

Cheers,

Neil



Re: compile warnings in CVS HEAD

From
Tom Lane
Date:
Neil Conway <neilc@samurai.com> writes:
> I get the following warnings when compiling CVS HEAD:

> be-secure.c: In function `open_server_SSL':
> be-secure.c:719: warning: assignment from incompatible pointer type

I saw someone else report this too, but it doesn't happen on my
machines.  Could you look into it and see just what the issue is?

> 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

The recently-added ecpg library files exhibit half a dozen warnings on
my boxen.  I'm not sure whether Michael is ready to worry about
portability issues for that stuff yet.  I'm happy to cut him some slack
if he's not worried yet --- but agreed, I don't want to still be seeing
these messages when we approach release.  Michael, what's your take?
        regards, tom lane

PS: I think Michael just left on vacation, so we may not get an answer
for a couple weeks ...