aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateVariadic.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-01-23 17:04:59 +0000
committerTed Kremenek <kremenek@apple.com>2011-01-23 17:04:59 +0000
commit9577abc63f2c7afe5adf6e4e101ae91d29c3b8a6 (patch)
tree45cf56abd56da1fa1218b0a1a59761325b5de94d /lib/Sema/SemaTemplateVariadic.cpp
parentce93a7cee6c0ea979c12b278771a79c4d6a37fc0 (diff)
Null initialize a few variables flagged by
clang's -Wuninitialized-experimental warning. While these don't look like real bugs, clang's -Wuninitialized-experimental analysis is stricter than GCC's, and these fixes have the benefit of being general nice cleanups. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateVariadic.cpp')
-rw-r--r--lib/Sema/SemaTemplateVariadic.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplateVariadic.cpp b/lib/Sema/SemaTemplateVariadic.cpp
index 8f57c56383..a49c23b1df 100644
--- a/lib/Sema/SemaTemplateVariadic.cpp
+++ b/lib/Sema/SemaTemplateVariadic.cpp
@@ -475,8 +475,7 @@ bool Sema::CheckParameterPacksForExpansion(SourceLocation EllipsisLoc,
for (unsigned I = 0; I != NumUnexpanded; ++I) {
// Compute the depth and index for this parameter pack.
- unsigned Depth;
- unsigned Index;
+ unsigned Depth = 0, Index = 0;
IdentifierInfo *Name;
bool IsFunctionParameterPack = false;