diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-03-15 07:58:36 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-03-15 07:58:36 +0000 |
commit | d9d1cbfe72aa206d23041b76fb10841ed462c2f5 (patch) | |
tree | d5249295e8bef6f7506b1b199a8281f3b04cd44c | |
parent | 2677ea871a25aa79f9db360f6ed10584c02267ad (diff) |
Added initialization to ErrorDiag to silence gcc's warning of the variable
potentially being used uninitialized (which it cannot be).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48393 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Analysis/GRSimpleVals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Analysis/GRSimpleVals.cpp b/Analysis/GRSimpleVals.cpp index 44429336a5..3777d53bf0 100644 --- a/Analysis/GRSimpleVals.cpp +++ b/Analysis/GRSimpleVals.cpp @@ -74,7 +74,7 @@ void EmitWarning(Diagnostic& Diag, SourceManager& SrcMgr, msg = Out.str().c_str(); bool isFirst = true; - unsigned ErrorDiag; + unsigned ErrorDiag = 0; llvm::SmallPtrSet<void*,10> CachedErrors; for (; I != E; ++I) { |