From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql(at)j-davis(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: new compiler warnings |
Date: | 2011-10-18 20:27:59 |
Message-ID: | CA+TgmoYgzOuaaEB39y5bQUn6H9JuK3KH8htaB9hbBwF3MLXzVg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Oct 18, 2011 at 4:13 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> On tis, 2011-10-18 at 15:43 -0400, Tom Lane wrote:
>>> 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)
>
>> 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).
>
> Ah-hah. That's also the default on Red Hat platforms, *if* you are
> building RPMs, and now that I think of it, I do see this warning when
> building RPMs. Seems weird that they'd have set it up that way though
> rather than with a -W switch.
Yeah, that's *quite* odd.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-10-18 20:28:16 | Re: new compiler warnings |
Previous Message | Kevin Grittner | 2011-10-18 20:14:15 | Re: new compiler warnings |