]> granicus.if.org Git - clang/commit
Make the "unused result" warning a warning about run-time behavior, so
authorDouglas Gregor <dgregor@apple.com>
Thu, 15 Jul 2010 18:47:04 +0000 (18:47 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 15 Jul 2010 18:47:04 +0000 (18:47 +0000)
commit35e12c90c1b107a75c5615aa76fdbd403661aaa6
treefce436c91a034af8014797d24ead6fabd1a2fe83
parent928d69f2927c32e2f57a882a96c2bef1de79aa4b
Make the "unused result" warning a warning about run-time behavior, so
that we don't warn when there isn't going to be any computation anyway.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108442 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaStmt.cpp
test/Sema/const-eval.c
test/Sema/expr-comma-c89.c
test/Sema/expr-comma.c
test/SemaCXX/decltype.cpp