#warning _FORTIFY_SOURCE hitting in build of vprintf.c

Roland McGrath roland@hack.frob.com
Wed May 9 22:44:00 GMT 2012


[AJ, please ignore the first copy I sent you when I forgot to CC the list.]

After your change, I'm getting:

In file included from ../libio/stdio.h:27,
                 from ../include/stdio.h:5,
                 from vprintf.c:20:
../include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O)

vprintf.c is obviously compiled with -O2 like everything else.

Can you investigate?  Off hand it looks like vprintf.c can just include
something or other to get <features.h> before its #undef.  Or probably
better, we could just use something different to control the bits/stdio.h
inline definition.  Off hand it looks like #define __NO_INLINE__ at the top
of vprintf.c would do it.

As a general admonition, everybody should be looking out for new warnings
appearing in the compilation when they make a change.


Thanks,
Roland



More information about the Libc-alpha mailing list