aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-01 01:39:59 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-01 01:39:59 +0000
commit3af708ff19e4ae2bf9e40550548361b00e5916bf (patch)
treec0f51d64d317040e6171b549678acdf1dd233b9b /lib/Sema/SemaStmt.cpp
parent738f8c278da5950d0d4607de2debe0bdfad64185 (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.cpp2
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();