[cfe-commits] Uninitialized variables warnings

Fariborz Jahanian fjahanian at apple.com
Thu Jan 3 12:08:49 PST 2008


One was legit. warning which caused the crash when initialized. They  
are now all initialized to avoid the warning altogether.
Thanks for reporting them.

- Fariborz

On Jan 2, 2008, at 1:36 PM, Anton Korobeynikov wrote:

> 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.
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list