Re: new compiler warnings - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: new compiler warnings
Date
Msg-id 1318968097.850.12.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: new compiler warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: new compiler warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On tis, 2011-10-18 at 15:43 -0400, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > Unfortunately, whether Tom's right or not, we still don't have a
> > solution to the compiler warning.
> 
> I don't actually see that warning on my Fedora 15 machine, with
>     gcc version 4.6.1 20110908 (Red Hat 4.6.1-9) (GCC)
> 
> What are the people who do see it using?
> 
> (I do see the -Waddress ones.)
> 
>             regards, tom lane
> 

You get the "unused return value" warnings with -D_FORTIFY_SOURCE=2,
which has been the default on Ubuntu for years, and has been the default
on Debian for a few weeks (if you have the hardening-wrapper package
installed or running under dpkg-buildpackage).



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: new compiler warnings
Next
From: "Kevin Grittner"
Date:
Subject: Re: new compiler warnings