public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* -std=gnu99
@ 2002-10-11  4:51 Roland McGrath
  0 siblings, 0 replies; only message in thread
From: Roland McGrath @ 2002-10-11  4:51 UTC (permalink / raw)
  To: GNU libc hackers

I've made libc compile using -std=gnu99 now.  This didn't require changing
any code (nor was it required to make any code work), though some tiny nits
were changed because of new warnings.  It just keeps us on our toes and
reflects the fact that ISO C99 with GNU extensions is the dialect in which
libc is written.  In writing new libc code we are free to use C99
constructs that GCC's default mode (-std=gnu89) won't accept.

However, there are now some new spurious warnings about use of the `a' flag
in scanf formats.  GCC's format checker can't distinguish between the
pre-1999 GNU extension `a' flag for string formats and the ISO C99 new `a'
format specifier for floats, and under -std=gnu99 it sees any format
starting with `%a' as the latter.  The runtime format parser has no trouble
with either, and no valid syntax is actually ambiguous. 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-11 11:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-11  4:51 -std=gnu99 Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).