]> granicus.if.org Git - clang/commit
Fix a bug/missing-feature Ted noticed: the 'unused' warning should not
authorChris Lattner <sabre@nondot.org>
Fri, 31 Aug 2007 21:49:55 +0000 (21:49 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 31 Aug 2007 21:49:55 +0000 (21:49 +0000)
commit98414c1b7d1944a57156d52e29bd41c005de09ac
tree47fbed1c7e597bc7a962919e8e1fa44bff614ba3
parent805e9a8300af9489ec13cd804c070267b7c4cfec
Fix a bug/missing-feature Ted noticed: the 'unused' warning should not
warn about the last stmt in a stmtexpr, f.e. there should be no warning for:

int maxval_stmt_expr(int x, int y) {
  return ({int _a = x, _b = y; _a > _b ? _a : _b; });
}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41655 91177308-0d34-0410-b5e6-96231b3b80d8
Parse/ParseExpr.cpp
Parse/ParseStmt.cpp
Sema/Sema.h
Sema/SemaStmt.cpp
clang.xcodeproj/project.pbxproj
include/clang/Parse/Action.h
include/clang/Parse/Parser.h
test/Sema/unused-expr.c