diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-02-03 06:51:50 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-02-03 06:51:50 +0000 |
commit | 436cc8ffe783341cb331a6f062721fff34c92a8f (patch) | |
tree | fe4970cb3ac3cb59d8945c0e7c286740f7a4de68 /clang/test/Sema/uninit-variables.c | |
parent | 2915731b6e0fa40173b96f183d392e3ccf0f1128 (diff) | |
download | bcm5719-llvm-436cc8ffe783341cb331a6f062721fff34c92a8f.tar.gz bcm5719-llvm-436cc8ffe783341cb331a6f062721fff34c92a8f.zip |
Reenable -Wuninitialized warning for captured block variables.
llvm-svn: 124782
Diffstat (limited to 'clang/test/Sema/uninit-variables.c')
-rw-r--r-- | clang/test/Sema/uninit-variables.c | 4 |
1 files changed, 2 insertions, 2 deletions
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() { |