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