]> granicus.if.org Git - clang/commitdiff
Silence a GCC unitialized-value warning
authorDouglas Gregor <dgregor@apple.com>
Fri, 10 Dec 2010 19:27:07 +0000 (19:27 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 10 Dec 2010 19:27:07 +0000 (19:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121504 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/DeclSpec.h

index bd419e3e69ab3e5ad9bb08135d88508031c1f4d4..aab63c086341c4fa4b984cb6c7e41a5b661c9c9c 100644 (file)
@@ -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;
   }