[cfe-commits] r42973 - /cfe/trunk/test/Sema/format-strings.c

Anders Carlsson andersca at mac.com
Sun Oct 14 19:50:05 PDT 2007


Author: andersca
Date: Sun Oct 14 21:50:04 2007
New Revision: 42973

URL: http://llvm.org/viewvc/llvm-project?rev=42973&view=rev
Log:
Fix a warning

Modified:
    cfe/trunk/test/Sema/format-strings.c

Modified: cfe/trunk/test/Sema/format-strings.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings.c?rev=42973&r1=42972&r2=42973&view=diff

==============================================================================
--- cfe/trunk/test/Sema/format-strings.c (original)
+++ cfe/trunk/test/Sema/format-strings.c Sun Oct 14 21:50:04 2007
@@ -59,7 +59,7 @@
   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) {





More information about the cfe-commits mailing list