[LLVMbugs] [Bug 21400] New: [ms] make -Wformat warn when using %zu and friends in format strings

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 27 19:51:22 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21400

            Bug ID: 21400
           Summary: [ms] make -Wformat warn when using %zu and friends in
                    format strings
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

msvc's c runtime doesn't support %zu and friends yet (
http://msdn.microsoft.com/en-us/library/tcxf1dw6.aspx
http://msdn.microsoft.com/en-us/library/hf4y5e3w.aspx ).

It'd be useful if -Wformat could warn on this in ms mode.

(if msvc ever adds support, maybe this could be keyed off -fmsc-version.)

Would've caught the %zu printfs in
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/wtf/PartitionAlloc.cpp
for example

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141028/054fef7f/attachment.html>


More information about the llvm-bugs mailing list