GNOME Bugzilla – Bug 617146
Lots of printf string format warnings on Windows
Last modified: 2010-04-29 08:30:08 UTC
MinGW GCC 4.5.0 doesn't give as much false positives as GCC 4.4.0 did, so i've removed -Wno-format and gave it a try. Core, -base, -good and -ugly got through without problems, but -bad got hit pretty hard.
Created attachment 159839 [details] [review] Massive fix for printf format strings Works for me. See if it gives any problems on other platforms. Lack of understanding between GCC and %zu worries me, but as far as i've learned, it wouldn't work until the functions in question get marked by gnu_printf attribute. For now best thing i can come up with is to use GLib's equivalents (i hope that on Linux G_GSIZE_FORMAT evaluates to "zu" or something equally appropriate for size_t).
commit 5f25780b02c34a479b143783f18d53a60dc03dbc Author: Руслан Ижбулатов <lrn1986@gmail.com> Date: Thu Apr 29 04:42:21 2010 +0400 Fix printf format strings for gcc 4.5 Done on Windows/MinGW. Fixes #617146