From 5aea91b09bdb36fba4e36c2766f3d5f9127d1e61 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 10 Dec 2010 19:27:07 +0000 Subject: [PATCH] Silence a GCC unitialized-value warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121504 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/DeclSpec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0