diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-01 01:39:59 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-01 01:39:59 +0000 |
commit | 3af708ff19e4ae2bf9e40550548361b00e5916bf (patch) | |
tree | c0f51d64d317040e6171b549678acdf1dd233b9b /lib/Sema/SemaStmt.cpp | |
parent | 738f8c278da5950d0d4607de2debe0bdfad64185 (diff) |
More warnings for unused expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index f00d60089b..65611f2e58 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -649,6 +649,8 @@ Sema::ActOnForStmt(SourceLocation ForLoc, SourceLocation LParenLoc, << SecondType << Second->getSourceRange()); } + DiagnoseUnusedExprResult(First); + DiagnoseUnusedExprResult(Third); DiagnoseUnusedExprResult(Body); first.release(); |