[cfe-commits] r61700 - /cfe/trunk/lib/AST/DeclSerialization.cpp
Douglas Gregor
dgregor at apple.com
Mon Jan 5 09:18:30 PST 2009
Author: dgregor
Date: Mon Jan 5 11:18:30 2009
New Revision: 61700
URL: http://llvm.org/viewvc/llvm-project?rev=61700&view=rev
Log:
Fix an uninitialized-variable warning
Modified:
cfe/trunk/lib/AST/DeclSerialization.cpp
Modified: cfe/trunk/lib/AST/DeclSerialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclSerialization.cpp?rev=61700&r1=61699&r2=61700&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclSerialization.cpp (original)
+++ cfe/trunk/lib/AST/DeclSerialization.cpp Mon Jan 5 11:18:30 2009
@@ -543,7 +543,7 @@
Decl* next_declarator;
- int numParams;
+ int numParams = 0;
bool hasParamDecls = D.ReadBool();
if (hasParamDecls)
numParams = D.ReadInt();
More information about the cfe-commits
mailing list