From: Keith M. <kei...@us...> - 2009-07-15 19:55:45
|
On Wednesday 15 July 2009 07:33:04 Danny Smith wrote: > > You are substituting ANSI conformance for conformance to a GNU > > standard instead. If you really wanted to guarantee that you > > are using only pure ANSI features, then you have lost that. The > > issue here, IIRC, is that some inline function definitions, > > which *are* exposed in __STRICT_ANSI__ mode, gratuitously depend > > on some other functions which are *not* ANSI, and their > > prototypes are explicitly *suppressed* by __STRICT_ANSI__. > > No the issue is that msvcrt-supplied wsprintf and vswprintf are > not ISO-C. See the comment in stdio.h or compare the prototypes > for these functions with C99 specification. Thanks for the clarification, Danny. However, it doesn't really alter the diagnosis: include/c++/cwchar gratuitously refers to swprintf and vswprintf, thus requiring their prototypes to be in scope, when they have been elided because they do not conform to the ANSI/ISO specification. That is a bug, for which we need to identify an appropriate resolution. -- Regards, Keith. |