[cfe-commits] r64313 - /cfe/trunk/lib/Sema/SemaTemplate.cpp
Mike Stump
mrs at apple.com
Wed Feb 11 10:58:50 PST 2009
Author: mrs
Date: Wed Feb 11 12:58:46 2009
New Revision: 64313
URL: http://llvm.org/viewvc/llvm-project?rev=64313&view=rev
Log:
Avoid bogus warning.
Modified:
cfe/trunk/lib/Sema/SemaTemplate.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplate.cpp?rev=64313&r1=64312&r2=64313&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplate.cpp Wed Feb 11 12:58:46 2009
@@ -516,7 +516,8 @@
bool SawDefaultArgument = false;
SourceLocation PreviousDefaultArgLoc;
- TemplateParameterList::iterator OldParam;
+ // Self initialization to avoid warnings.
+ TemplateParameterList::iterator OldParam = OldParam;
if (OldParams)
OldParam = OldParams->begin();
More information about the cfe-commits
mailing list