aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-12-10 19:27:07 +0000
committerDouglas Gregor <dgregor@apple.com>2010-12-10 19:27:07 +0000
commit5aea91b09bdb36fba4e36c2766f3d5f9127d1e61 (patch)
tree0911dce1dff18fb2edba0f3f329b5b50bf88e270
parent4472fc641ea3069463798fb56a04043c28ea2910 (diff)
Silence a GCC unitialized-value warning
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121504 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Sema/DeclSpec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Sema/DeclSpec.h b/include/clang/Sema/DeclSpec.h
index bd419e3e69..aab63c0863 100644
--- a/include/clang/Sema/DeclSpec.h
+++ b/include/clang/Sema/DeclSpec.h
@@ -1376,7 +1376,7 @@ public:
/// (looking through parentheses).
DeclaratorChunk::FunctionTypeInfo &getFunctionTypeInfo() {
assert(isFunctionDeclarator() && "Not a function declarator!");
- unsigned index;
+ unsigned index = 0;
isFunctionDeclarator(index);
return DeclTypeInfo[index].Fun;
}