[cfe-commits] Uninitialized variables warnings

Anton Korobeynikov asl at math.spbu.ru
Wed Jan 2 13:36:42 PST 2008


Hello, Everyone.

I'm seeing the following warnings on TOT:

/home/asl/proj/llvm/src/tools/clang/AST/ASTContext.cpp: In member
function `bool
clang::ASTContext::ObjcQualifiedIdTypesAreCompatible(clang::QualType,
clang::QualType, bool)':
/home/asl/proj/llvm/src/tools/clang/AST/ASTContext.cpp:1387: warning:
'numRhsProtocols' might be used uninitialized in this function
/home/asl/proj/llvm/src/tools/clang/AST/ASTContext.cpp:1388: warning:
'rhsProtoList' might be used uninitialized in this function
/home/asl/proj/llvm/src/tools/clang/AST/ASTContext.cpp:1438: warning:
'numLhsProtocols' might be used uninitialized in this function
/home/asl/proj/llvm/src/tools/clang/AST/ASTContext.cpp:1439: warning:
'lhsProtoList' might be used uninitialized in this function

/home/asl/proj/llvm/src/tools/clang/Sema/SemaExpr.cpp: In member
function `virtual clang::Action::ActionResult<0u>
clang::Sema::ActOnInstanceMessage(void*, clang::Selector,
clang::SourceLocation, clang::SourceLocation, void**, unsigned int)':
/home/asl/proj/llvm/src/tools/clang/Sema/SemaExpr.cpp:2310: warning:
'Method' might be used uninitialized in this function
/home/asl/proj/llvm/src/tools/clang/Sema/SemaExpr.cpp:2338: warning:
'ClassDecl' might be used uninitialized in this function

Most probably all of them are bogus, but anyway.

-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.





More information about the cfe-commits mailing list