diff options
author | Anders Carlsson <andersca@mac.com> | 2007-10-15 02:50:04 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2007-10-15 02:50:04 +0000 |
commit | 1ff8b58fa0fda7dd3a0a715637c2db2f9573539f (patch) | |
tree | 1a4f0f38a85908ce8abca972b47e8642629f4024 /test/Sema/format-strings.c | |
parent | ff1afdb4f5ee2fc74ec0af788e18b3a036eaaafe (diff) |
Fix a warning
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings.c')
-rw-r--r-- | test/Sema/format-strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/format-strings.c b/test/Sema/format-strings.c index 2222f79608..e5bbd70bfd 100644 --- a/test/Sema/format-strings.c +++ b/test/Sema/format-strings.c @@ -59,7 +59,7 @@ void check_wide_string(char* b, ...) va_start(ap,b); printf(L"foo %d",2); // expected-warning {{should not be a wide string}} - vasprintf(&b,L"bar %d",2); // expected-warning {{should not be a wide string}} + vasprintf(&b,L"bar %d",ap); // expected-warning {{should not be a wide string}} } void check_asterisk_precision_width(int x) { |