From: Anders Carlsson Date: Mon, 15 Oct 2007 02:50:04 +0000 (+0000) Subject: Fix a warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ff8b58fa0fda7dd3a0a715637c2db2f9573539f;p=clang Fix a warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42973 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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) {