[LLVMbugs] [Bug 12837] New: Detect "%Zu" printf format specifier and suggest "%zu"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 15 13:41:46 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12837
Bug #: 12837
Summary: Detect "%Zu" printf format specifier and suggest "%zu"
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: matthewbg at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Apparently some old libc used 'Z' as a length modifier for size_t printf
arguments. C99 standardized 'z' for this purpose; we should detect the former
and give a nice note suggesting the latter. (Right now we just say "invalid
conversion specifier 'Z'".)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list