Re: new compiler warnings

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: new compiler warnings
Date: 2011-01-27 01:02:59
Message-ID: 201101270103.p0R130r06426@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:
> Bruce Momjian wrote:
> > Robert Haas wrote:
> > > I recently started getting these:
> > >
> > > plpython.c: In function ?PLy_output?:
> > > plpython.c:3468: warning: format not a string literal and no format arguments
> > > plpython.c: In function ?PLy_elog?:
> > > plpython.c:3620: warning: format not a string literal and no format arguments
> > > plpython.c:3627: warning: format not a string literal and no format arguments
> >
> > And I see this warning:
> >
> > compress_io.c:597: warning: passing arg 2 of `gzwrite' discards
> > qualifiers from pointer target type
>
> I can remove this warning by casting the pointer to (void *), rather
> than (const void *) because that is what the prototype uses on my system
> uses (libz.so.1.1.4):
>
> ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
> const voidp buf, unsigned len));

I was just suggesting that others might also see this warning for older
libs. You don't need to change it for me.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-01-27 01:08:31 Re: new compiler warnings
Previous Message Tom Lane 2011-01-27 00:58:52 Re: new compiler warnings