[cfe-commits] New clang warnings

Ted Kremenek kremenek at apple.com
Tue Jun 17 14:56:56 PDT 2008


Thanks Anton.  I spent a good portion of my day yesterday getting rid  
of many of the strict-aliasing warnings in the AST library.  I plan on  
tackling the ones in the Analysis library soon.  I'll also take a look  
at the uninitialized value warning in CodeGen.

On Jun 17, 2008, at 2:39 PM, Anton Korobeynikov wrote:

> Hi,
>
> here is list of new clang warnings:
>
> /home/asl/proj/llvm/src/tools/clang/lib/CodeGen/CodeGenModule.cpp: In
> member function ‘void
> clang::CodeGen::CodeGenModule::EmitObjCClassImplementation(const
> clang::ObjCImplementationDecl*)’:
> /home/asl/proj/llvm/src/tools/clang/lib/CodeGen/CodeGenModule.cpp:447:
> warning: ‘ObjTy’ may be used uninitialized in this function
> /home/asl/proj/llvm/src/tools/clang/lib/Analysis/RValues.cpp: In  
> member
> function ‘const clang::SymbolID* clang::RVal::symbol_begin() const’:
> /home/asl/proj/llvm/src/tools/clang/lib/Analysis/RValues.cpp:32:
> warning: dereferencing type-punned pointer will break strict-aliasing
> rules
> /home/asl/proj/llvm/src/tools/clang/lib/Analysis/RValues.cpp:34:
> warning: dereferencing type-punned pointer will break strict-aliasing
> rules
> /home/asl/proj/llvm/src/tools/clang/lib/Analysis/GRExprEngine.cpp: In
> member function ‘void
> clang::GRExprEngine::VisitBinaryOperator(clang::BinaryOperator*,
> clang::ExplodedNode<clang::ValueState>*,
> clang::ExplodedNodeSet<clang::ValueState>&)’:
> /home/asl/proj/llvm/src/tools/clang/lib/Analysis/GRExprEngine.cpp: 
> 2038:
> warning: dereferencing type-punned pointer will break strict-aliasing
> rules
> /home/asl/proj/llvm/src/tools/clang/lib/Analysis/GRExprEngine.cpp: 
> 2040:
> warning: dereferencing type-punned pointer will break strict-aliasing
> rules
>
> -- 
> 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