From 35d800c39f238a529fcb832891f799bb32645170 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 4 Apr 2011 19:43:57 +0000 Subject: -Wuninitialized: don't issue fixit for initializer if a variable declaration already has an initializer. llvm-svn: 128838 --- 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 17bd07f3e55..3ddd097c8f2 100644 --- a/clang/test/Sema/uninit-variables.c +++ b/clang/test/Sema/uninit-variables.c @@ -92,7 +92,7 @@ void test14() { } void test15() { - int x = x; // expected-warning{{variable 'x' is possibly uninitialized when used here}} expected-note{{variable 'x' is declared here}} expected-note{{add initialization to silence this warning}} + int x = x; // expected-warning{{variable 'x' is possibly uninitialized when used here}} expected-note{{variable 'x' is declared here}} } // Don't warn in the following example; shows dataflow confluence. -- cgit v1.2.3