[Webkit-unassigned] [Bug 133028] Build break of 2.4.x under mingw32/msys

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 25 06:40:42 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=133028

LRN <lrn1986 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lrn1986 at gmail.com

--- Comment #33 from LRN <lrn1986 at gmail.com> ---
About attachment 233528

Bear in mind that the use of printf format depends on two things:
1) gcc's ability to check format strings.
2) printf implementation support for various format specifiers

The (1) depends on how the function is decorated (ms_printf or gnu_printf). The impact is minor (gcc will warn about unsupported format specifiers, but will compile anyway, unless you're using -Werror)

The (2) depends on whether you define __USE_MINGW_ANSI_STDIO or not.
If you do, internal mingw printf implementation is used. That implementation supports most GNU printf format specifiers, as well as MS specifiers. It's also decorated with gnu_printf, so even though it will work with MS format specifiers at runtime, gcc will complain if you use them.
If you don't, msvcrt implementation is used. It supports (almost) none of the GNU printf format specifiers, and its standard support is poor. It is not decorated, and gcc won't check the format string.

Make up your mind, then use appropriate format strings.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150125/34cbdde4/attachment-0002.html>


More information about the webkit-unassigned mailing list