[Bug c/37648] Incorrect warning "flag ignored with precision" in printf
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Sep 28 19:54:00 GMT 2008
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-28 19:53 -------
C99 (7.19.6.1/6) says:
For d, i, o, u, x, and X conversions, if a precision is specified, the 0 flag
is ignored.
So the warning is correct.
>The '0' flag isn't actually ignored, and it shouldn't be anyway, so I think
> the warning is incorrect.
Why do you think it is not ignored, C99 says it is ignored as mentioned above.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37648
More information about the Gcc-bugs
mailing list