From 436cc8ffe783341cb331a6f062721fff34c92a8f Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 3 Feb 2011 06:51:50 +0000 Subject: Reenable -Wuninitialized warning for captured block variables. llvm-svn: 124782 --- clang/test/Sema/uninit-variables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 ce3f93d590d..1a080299aa1 100644 --- a/clang/test/Sema/uninit-variables.c +++ b/clang/test/Sema/uninit-variables.c @@ -193,8 +193,8 @@ int test28() { } void test29() { - int x; - (void) ^{ (void) x; }; + int x; // expected-note{{variable 'x' is declared here}} expected-note{{add initialization to silence this warning}} + (void) ^{ (void) x; }; // expected-warning{{variable 'x' is possibly uninitialized when captured by block}} } void test30() { -- cgit v1.2.3