[cfe-commits] [PATCH] Fix warnings found by gcc-4.6 (issue3888041)

jyasskin at gmail.com jyasskin at gmail.com
Thu Jan 6 16:53:36 PST 2011


Reviewers: ,

Message:
The full patch is at
http://codereview.appspot.com/download/issue3888041_1.diff. Please take
a look.

Description:
Most of these were found by the new -Wunused-but-set-variable warning.
Several of these unused variables look like they ought to have been
used, so someone who knows this code better than I do should check
whether the new warnings found some bugs.

I also fixed some spurious -Wint-to-pointer-cast warnings.

I checked that everything was fixed with `make CFLAGS="-Werror"
CXXFLAGS="-Werror"`

Please review this at http://codereview.appspot.com/3888041/

Affected files:
   M     include/clang/Basic/SourceLocation.h
   M     lib/CodeGen/CGExpr.cpp
   M     lib/CodeGen/CGExprComplex.cpp
   M     lib/CodeGen/CGObjC.cpp
   M     lib/CodeGen/ItaniumCXXABI.cpp
   M     lib/GR/CXXExprEngine.cpp
   M     lib/GR/Checkers/ExprEngine.cpp
   M     lib/Lex/PPMacroExpansion.cpp
   M     lib/Parse/ParseDecl.cpp
   M     lib/Parse/ParseDeclCXX.cpp
   M     lib/Parse/ParseExpr.cpp
   M     lib/Parse/ParseExprCXX.cpp
   M     lib/Parse/ParseObjc.cpp
   M     lib/Parse/ParseStmt.cpp
   M     lib/Parse/ParseTemplate.cpp
   M     lib/Parse/ParseTentative.cpp
   M     lib/Rewrite/RewriteObjC.cpp
   M     lib/Sema/SemaCXXCast.cpp
   M     lib/Sema/SemaDeclCXX.cpp
   M     lib/Sema/SemaExpr.cpp
   M     lib/Sema/SemaExprCXX.cpp
   M     lib/Sema/SemaTemplate.cpp
   M     lib/Sema/SemaTemplateDeduction.cpp
   M     lib/Sema/TreeTransform.h
   M     lib/Serialization/ASTWriterDecl.cpp
   M     tools/libclang/CIndex.cpp
   M     tools/libclang/CXCursor.cpp





More information about the cfe-commits mailing list