This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Incorrect warning about printf %0<fieldwidth>p format
On Thu, 8 May 2003, Jim Avera wrote:
> The actual implementation in glibc does in
> fact support a field width with %p, and gcc should
> not prevent accessing this functionality.
While the format checking supports genuine GNU extensions in glibc (where
they do not conflict with the standards), it doesn't support features that
just happen to be accidents of the current implementation. The glibc
manual is quite explicit that the 0 flag is not defined for %p, so this
counts as an implementation accident, not a feature that GCC should
support.
--
Joseph S. Myers
jsm28@cam.ac.uk