From 2959fdd087e763cdedc48a02fbb2636f1ddb1592 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 21 Jan 2011 19:41:46 +0000 Subject: Add basic fixits for -Wuninitialized-experimental to suggest initializations for pointer and ObjC pointer types. llvm-svn: 123995 --- clang/test/Sema/uninit-variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Sema/uninit-variables.c') diff --git a/clang/test/Sema/uninit-variables.c b/clang/test/Sema/uninit-variables.c index 62fcda019a4..76c3dc12c2e 100644 --- a/clang/test/Sema/uninit-variables.c +++ b/clang/test/Sema/uninit-variables.c @@ -106,7 +106,7 @@ void test16() { void test17() { // Don't warn multiple times about the same uninitialized variable // along the same path. - int *x; // expected-warning{{use of uninitialized variable 'x'}} + int *x; // expected-warning{{use of uninitialized variable 'x'}} expected-note{{add initialization to silence this warning}} *x = 1; // expected-note{{variable 'x' is possibly uninitialized when used here}} *x = 1; // no-warning } -- cgit v1.2.3