This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |