]> granicus.if.org Git - clang/commitdiff
Fix a warning
authorAnders Carlsson <andersca@mac.com>
Mon, 15 Oct 2007 02:50:04 +0000 (02:50 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 15 Oct 2007 02:50:04 +0000 (02:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42973 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/format-strings.c

index 2222f796086bb43ec18da8bb89440f4b5a312a9e..e5bbd70bfde99ef57886dc044cbe75a105d8dcbd 100644 (file)
@@ -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) {