[cfe-commits] r121504 - /cfe/trunk/include/clang/Sema/DeclSpec.h
Douglas Gregor
dgregor at apple.com
Fri Dec 10 11:27:07 PST 2010
Author: dgregor
Date: Fri Dec 10 13:27:07 2010
New Revision: 121504
URL: http://llvm.org/viewvc/llvm-project?rev=121504&view=rev
Log:
Silence a GCC unitialized-value warning
Modified:
cfe/trunk/include/clang/Sema/DeclSpec.h
Modified: cfe/trunk/include/clang/Sema/DeclSpec.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/DeclSpec.h?rev=121504&r1=121503&r2=121504&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/DeclSpec.h (original)
+++ cfe/trunk/include/clang/Sema/DeclSpec.h Fri Dec 10 13:27:07 2010
@@ -1376,7 +1376,7 @@
/// (looking through parentheses).
DeclaratorChunk::FunctionTypeInfo &getFunctionTypeInfo() {
assert(isFunctionDeclarator() && "Not a function declarator!");
- unsigned index;
+ unsigned index = 0;
isFunctionDeclarator(index);
return DeclTypeInfo[index].Fun;
}
More information about the cfe-commits
mailing list