[LLVMdev] random warnings

Mike Stump mrs at apple.com
Sat Dec 22 17:25:42 PST 2007


On Dec 22, 2007, at 2:47 PM, Chris Lattner wrote:
> Fixed, thanks.

That just leaves:

ExprCXX.cpp: In member function 'virtual clang::StmtIterator  
clang::CXXCastExpr::child_begin()':
ExprCXX.cpp:24: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
ExprCXX.cpp: In member function 'virtual clang::StmtIterator  
clang::CXXCastExpr::child_end()':
ExprCXX.cpp:28: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ImaginaryLiteral::child_begin()':
Expr.cpp:1025: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ImaginaryLiteral::child_end()':
Expr.cpp:1028: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ParenExpr::child_begin()':
Expr.cpp:1037: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ParenExpr::child_end()':
Expr.cpp:1040: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::UnaryOperator::child_begin()':
Expr.cpp:1045: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ArraySubscriptExpr::child_begin()':
Expr.cpp:1066: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ArraySubscriptExpr::child_end()':
Expr.cpp:1069: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::MemberExpr::child_begin()':
Expr.cpp:1082: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::MemberExpr::child_end()':
Expr.cpp:1085: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::OCUVectorElementExpr::child_begin()':
Expr.cpp:1090: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::OCUVectorElementExpr::child_end()':
Expr.cpp:1093: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::CompoundLiteralExpr::child_begin()':
Expr.cpp:1098: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::CompoundLiteralExpr::child_end()':
Expr.cpp:1101: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ImplicitCastExpr::child_begin()':
Expr.cpp:1106: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ImplicitCastExpr::child_end()':
Expr.cpp:1109: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::CastExpr::child_begin()':
Expr.cpp:1114: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::CastExpr::child_end()':
Expr.cpp:1117: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::BinaryOperator::child_begin()':
Expr.cpp:1122: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::BinaryOperator::child_end()':
Expr.cpp:1125: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ConditionalOperator::child_begin()':
Expr.cpp:1130: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ConditionalOperator::child_end()':
Expr.cpp:1133: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::StmtExpr::child_begin()':
Expr.cpp:1142: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::StmtExpr::child_end()':
Expr.cpp:1145: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ChooseExpr::child_begin()':
Expr.cpp:1159: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::ChooseExpr::child_end()':
Expr.cpp:1163: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::VAArgExpr::child_begin()':
Expr.cpp:1168: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Expr.cpp: In member function 'virtual clang::StmtIterator  
clang::VAArgExpr::child_end()':
Expr.cpp:1172: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Stmt.cpp: In member function 'virtual clang::StmtIterator  
clang::IndirectGotoStmt::child_begin()':
Stmt.cpp:192: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Stmt.cpp: In member function 'virtual clang::StmtIterator  
clang::ReturnStmt::child_begin()':
Stmt.cpp:207: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
Stmt.cpp: In member function 'virtual clang::StmtIterator  
clang::ReturnStmt::child_end()':
Stmt.cpp:212: warning: dereferencing type-punned pointer will break  
strict-aliasing rules
ASTContext.cpp: In member function 'bool  
clang::ASTContext::ObjcQualifiedIdTypesAreCompatible(clang::QualType,  
clang::QualType, bool)':
ASTContext.cpp:1387: warning: 'rhsProtoList' may be used uninitialized  
in this function
ASTContext.cpp:1386: warning: 'numRhsProtocols' may be used  
uninitialized in this function
StmtIterator.cpp: In member function 'clang::Stmt*&  
clang::StmtIteratorBase::GetDeclExpr() const':
StmtIterator.cpp:108: warning: dereferencing type-punned pointer will  
break strict-aliasing rules
StmtIterator.cpp:113: warning: dereferencing type-punned pointer will  
break strict-aliasing rules
StmtIterator.cpp:117: warning: dereferencing type-punned pointer will  
break strict-aliasing rules

then.



More information about the llvm-dev mailing list