http://llvm.org/bugs/show_bug.cgi?id=9751
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution| |FIXED --- Comment #1 from [email protected] 2011-10-27 19:48:26 CDT --- Committed a fix at r143168. --Source-- #include <stdio.h> const char kFormatStr[] = "%d %s\n"; void f() { printf(kFormatStr, 0); printf(kFormatStr, 1); } --Clang Messages-- format.c:6:10: warning: more '%' conversions than data arguments [-Wformat] printf(kFormatStr, 0); ^~~~~~~~~~ format.c:3:32: note: format string is defined here const char kFormatStr[] = "%d %s\n"; ~^ format.c:7:10: warning: more '%' conversions than data arguments [-Wformat] printf(kFormatStr, 1); ^~~~~~~~~~ format.c:3:32: note: format string is defined here const char kFormatStr[] = "%d %s\n"; ~^ 2 warnings generated. -- 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. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
