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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to