_FORTIFY_SOURCE for std::vector

Paolo Carlini paolo.carlini@oracle.com
Fri Jun 1 14:16:00 GMT 2012


On 06/01/2012 04:13 PM, Jakub Jelinek wrote:
> On Fri, Jun 01, 2012 at 03:11:51PM +0100, Pedro Alves wrote:
>> On 06/01/2012 02:36 PM, Paolo Carlini wrote:
>>
>>> On 06/01/2012 03:22 PM, Pedro Alves wrote:
>>>> The shorter version triggers an -Wundef warning if _FORTIFY_SOURCE is not defined.
>>> Interesting, but does it happen in system headers too?
>>
>> Good point.  I just tried and it doesn't.
> But with -Wsystem-headers it does again.
... together with another TON of warnings everywhere, yes ;)

Paolo.



More information about the Gcc-patches mailing list