This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

#warning _FORTIFY_SOURCE hitting in build of vprintf.c


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]