[cfe-commits] r48393 - /cfe/trunk/Analysis/GRSimpleVals.cpp
Ted Kremenek
kremenek at apple.com
Sat Mar 15 00:58:37 PDT 2008
Author: kremenek
Date: Sat Mar 15 02:58:36 2008
New Revision: 48393
URL: http://llvm.org/viewvc/llvm-project?rev=48393&view=rev
Log:
Added initialization to ErrorDiag to silence gcc's warning of the variable
potentially being used uninitialized (which it cannot be).
Modified:
cfe/trunk/Analysis/GRSimpleVals.cpp
Modified: cfe/trunk/Analysis/GRSimpleVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRSimpleVals.cpp?rev=48393&r1=48392&r2=48393&view=diff
==============================================================================
--- cfe/trunk/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/Analysis/GRSimpleVals.cpp Sat Mar 15 02:58:36 2008
@@ -74,7 +74,7 @@
msg = Out.str().c_str();
bool isFirst = true;
- unsigned ErrorDiag;
+ unsigned ErrorDiag = 0;
llvm::SmallPtrSet<void*,10> CachedErrors;
for (; I != E; ++I) {
More information about the cfe-commits
mailing list