diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-01-20 21:52:58 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-01-20 21:52:58 +0000 |
commit | ce506ae231703a23ea95335cd4de19c60082f361 (patch) | |
tree | 4f354d3fe0d049a3d9948bc0774814e0d8b5f03c /test/SemaObjC/format-strings-objc.m | |
parent | 3026348bd4c13a0f83b59839f64065e0fcbea253 (diff) |
Tighten format string diagnostic and make it a bit clearer (and a bit closer to GCC's).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/format-strings-objc.m')
-rw-r--r-- | test/SemaObjC/format-strings-objc.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjC/format-strings-objc.m b/test/SemaObjC/format-strings-objc.m index 29e3a3f496..3fb7c9e435 100644 --- a/test/SemaObjC/format-strings-objc.m +++ b/test/SemaObjC/format-strings-objc.m @@ -47,8 +47,8 @@ extern void CFStringCreateWithFormat2(int *format, ...) __attribute__((format(CF // <rdar://problem/7068334> - Catch use of long long with int arguments. void rdar_7068334() { long long test = 500; - printf("%i ",test); // expected-warning{{conversion specifies type 'int' but the argument has type 'long long'}} - NSLog(@"%i ",test); // expected-warning{{conversion specifies type 'int' but the argument has type 'long long'}} + printf("%i ",test); // expected-warning{{format specifies type 'int' but the argument has type 'long long'}} + NSLog(@"%i ",test); // expected-warning{{format specifies type 'int' but the argument has type 'long long'}} } // <rdar://problem/7697748> |