_FORTIFY_SOURCE for std::vector
Pedro Alves
palves@redhat.com
Fri Jun 1 13:24:00 GMT 2012
On 06/01/2012 02:09 PM, Paolo Carlini wrote:
>>> 4- Maybe I'm misremembering, sorry in case, but Isn't:
>>>
>>> #if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0
>>>
>>> the same as:
>>>
>>> #if _FORTIFY_SOURCE > 0
>>>
>>> ?
>>
>> I think you're right, but I'm just copying literally what GNU libc is doing. I can change it to the shorter version if you want me to.
> I think we should yes.
The shorter version triggers an -Wundef warning if _FORTIFY_SOURCE is not defined.
--
Pedro Alves
More information about the Libstdc++
mailing list