Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC
Date
Msg-id 27654.1349407345@sss.pgh.pa.us
Whole thread Raw
Responses Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> On Tue, 2012-10-02 at 17:05 +0100, Peter Geoghegan wrote:
>> /usr/include/features.h:314:4: warning: #warning _FORTIFY_SOURCE
>> requires compiling with optimization (-O) [-Wcpp]

> Which glibc version is this?  (Run /lib/libc.so)

I've seen this warning in recent Fedora builds, though not on my F16
production box.  Some googling suggests the locution

#if __OPTIMIZE__
#define _FORTIFY_SOURCE 2
#endif

but I've not tested that.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Support for REINDEX CONCURRENTLY
Next
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC