diff options
author | David Blaikie <dblaikie@gmail.com> | 2011-09-10 05:35:08 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2011-09-10 05:35:08 +0000 |
commit | e5f9a9e60379958eb02e66d86f5df9221bc793eb (patch) | |
tree | 7a27b477e788f3a4a637e3bd777b2f64f440a152 /clang/test/SemaCXX/uninit-variables-conditional.cpp | |
parent | 5dc5c1ea47b8fbd7ce043892a005749a74a153ab (diff) | |
download | bcm5719-llvm-e5f9a9e60379958eb02e66d86f5df9221bc793eb.tar.gz bcm5719-llvm-e5f9a9e60379958eb02e66d86f5df9221bc793eb.zip |
Show either a location or a fixit note, not both, for uninitialized variable warnings.
llvm-svn: 139463
Diffstat (limited to 'clang/test/SemaCXX/uninit-variables-conditional.cpp')
-rw-r--r-- | clang/test/SemaCXX/uninit-variables-conditional.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/uninit-variables-conditional.cpp b/clang/test/SemaCXX/uninit-variables-conditional.cpp index 3324215621b..3c44c7249d5 100644 --- a/clang/test/SemaCXX/uninit-variables-conditional.cpp +++ b/clang/test/SemaCXX/uninit-variables-conditional.cpp @@ -15,7 +15,7 @@ int init(double *); // the destructor in Foo fouls about the minor bit of path-sensitivity in // -Wuninitialized. double test() { - double x; // expected-note {{variable 'x' is declared here}} expected-note{{add initialization to silence this warning}} + double x; // expected-note{{initialize the variable 'x' to silence this warning}} if (bar() || baz() || Foo() || init(&x)) return 1.0; |