This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37768] bogus warnings on x86_64-mingw32 due to attribute((format(printf))) breakage
- From: "mikpe at it dot uu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Oct 2008 07:04:01 -0000
- Subject: [Bug c/37768] bogus warnings on x86_64-mingw32 due to attribute((format(printf))) breakage
- References: <bug-37768-7665@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from mikpe at it dot uu dot se 2008-10-09 07:04 -------
> > The program below illustrates the issue. It declares a private C99-compliant
> > snprintf() implementation and invokes it with "%zu" and "%llx" formats. This
> > triggers the following bogus warnings on x86_64-pc-mingw32:
>
> Use gnu_printf for such an implementation.
Thanks. Using gnu_printf (new in 4.4) solves the issues I had.
--
mikpe at it dot uu dot se changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37768