diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-07-07 00:36:56 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-07-07 00:36:56 +0000 |
commit | 509a9ce9daffb2c84473b29c66e49e6fabbe6ef9 (patch) | |
tree | 9329c085cc2694246e1554bbc29834a7dd800802 /clang/lib/Checker | |
parent | f0e551d4f4b20fdc9295325774e05d53760a765a (diff) | |
download | bcm5719-llvm-509a9ce9daffb2c84473b29c66e49e6fabbe6ef9.tar.gz bcm5719-llvm-509a9ce9daffb2c84473b29c66e49e6fabbe6ef9.zip |
Silence an annoying GCC warning about use of an uninitialized variable. Even
making the other switch case unreachable, or sinking the 'continue' into it
doesn't silence this.
llvm-svn: 107745
Diffstat (limited to 'clang/lib/Checker')
-rw-r--r-- | clang/lib/Checker/IdempotentOperationChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/IdempotentOperationChecker.cpp b/clang/lib/Checker/IdempotentOperationChecker.cpp index 1118d5e279d..646c6aff1f6 100644 --- a/clang/lib/Checker/IdempotentOperationChecker.cpp +++ b/clang/lib/Checker/IdempotentOperationChecker.cpp @@ -311,7 +311,7 @@ void IdempotentOperationChecker::VisitEndAnalysis(ExplodedGraph &G, hash.begin(); i != hash.end(); ++i) { if (i->second != Impossible) { // Select the error message. - const char *msg; + const char *msg = 0; switch (i->second) { case Equal: msg = "idempotent operation; both operands are always equal in value"; |