[LLVMbugs] [Bug 10274] format function attribute with the NSString archetype yields no compiler warnings

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 14 13:20:38 PDT 2012


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

Eric Christopher <echristo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |echristo at gmail.com
         Resolution|                            |FIXED

--- Comment #2 from Eric Christopher <echristo at gmail.com> 2012-08-14 15:20:38 CDT ---
This appears to be fixed in ToT:


bar.m:9:11: warning: more '%' conversions than data arguments [-Wformat]
  test0("%d");
         ~^
bar.m:10:15: warning: format specifies type 'int' but the argument has type
      'char *' [-Wformat]
  test0("%d", "foo");
         ~~   ^~~~~
         %s
bar.m:12:12: warning: more '%' conversions than data arguments [-Wformat]
  test1(@"%d");
          ~^
bar.m:13:16: warning: format specifies type 'int' but the argument has type
      'char *' [-Wformat]
  test1(@"%d", "foo");
          ~~   ^~~~~
          %s
4 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.



More information about the llvm-bugs mailing list