[cfe-commits] r64313 - /cfe/trunk/lib/Sema/SemaTemplate.cpp
Douglas Gregor
dgregor at apple.com
Wed Feb 11 11:00:37 PST 2009
On Feb 11, 2009, at 10:58 AM, Mike Stump wrote:
> 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();
Ewwwwwwwww. Is there no other way?
- Doug
More information about the cfe-commits
mailing list