diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-01-21 19:41:46 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-01-21 19:41:46 +0000 |
commit | 2959fdd087e763cdedc48a02fbb2636f1ddb1592 (patch) | |
tree | b9f7baa809c6ce4220eea73c12875a0a49368410 /clang/test/Sema/uninit-variables.c | |
parent | 39fa05634287190fa5898715dc66ac68ce5028ef (diff) | |
download | bcm5719-llvm-2959fdd087e763cdedc48a02fbb2636f1ddb1592.tar.gz bcm5719-llvm-2959fdd087e763cdedc48a02fbb2636f1ddb1592.zip |
Add basic fixits for -Wuninitialized-experimental
to suggest initializations for pointer and
ObjC pointer types.
llvm-svn: 123995
Diffstat (limited to 'clang/test/Sema/uninit-variables.c')
-rw-r--r-- | clang/test/Sema/uninit-variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |