[Webkit-unassigned] [Bug 143773] [W32] Many warnings about printf format all over the code when building with MinGW

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 15 10:18:24 PDT 2015


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

LRN <lrn1986 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #250820|                            |review?
              Flags|                            |

--- Comment #1 from LRN <lrn1986 at gmail.com> ---
Created attachment 250820
  --> https://bugs.webkit.org/attachment.cgi?id=250820&action=review
Change printf format attribute to gnu_printf, MinGW compatibility

"printf" means "gnu_printf" when compiling for non-Windows and means
"ms_printf" when compiling for Windows. The code, however, does seems to be
assuming gnu_printf (judging by the use of %z and %l).

Fix this by explicitly specifying gnu_printf format style.
To ensure that gnu-compatible printf implementation is used, compile
with -D__USE_MINGW_ANSI_STDIO=1, it will automagically turn all *printf()
invocations into __mingw_*printf(), which are gnu-compatible.

Only one function that won't be turned is _vsnprintf(). Ifdef its use and
call vsnprintf() instead when __USE_MINGW_ANSI_STDIO != 0.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150415/87745076/attachment.html>


More information about the webkit-unassigned mailing list