_FORTIFY_SOURCE for std::vector
Jakub Jelinek
jakub@redhat.com
Fri Jun 1 14:13:00 GMT 2012
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. It doesn't hurt to add that
defined ... && check to quiet it up.
Jakub
More information about the Libstdc++
mailing list