summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-unused-value.c
Commit message (Collapse)AuthorAgeFilesLines
* Adding a -Wunused-value warning for expressions with side effects used in an ↵Aaron Ballman2014-12-171-3/+22
| | | | | | unevaluated expression context, such as sizeof(), or decltype(). Also adds a similar warning when the expression passed to typeid() *is* evaluated, since it is equally likely that the user would expect the expression operand to be unevaluated in that case. llvm-svn: 224465
* Don't warn about unused values in ternary ?: expressions unless both the LHS ↵Ted Kremenek2011-03-011-0/+9
| | | | | | | | and RHS are "unused" (side-effect free). Patch by Justin Bogner! Fixes PR 8282. llvm-svn: 126779
* Implement -Wunused-label.Argyrios Kyrtzidis2010-09-191-2/+2
| | | | llvm-svn: 114315
* Warn when an expression result in a LabelStmt is unused.Argyrios Kyrtzidis2010-09-191-0/+3
| | | | llvm-svn: 114314
* Fix rdar://8139785 "implement warning on dead expression in comma operator"Argyrios Kyrtzidis2010-06-301-3/+13
| | | | | | | | | | As a bonus, fix the warning for || and && operators; it was emitted even if one of the operands had side effects, e.g: x || test_logical_foo1(); emitted a bogus "expression result unused" for 'x'. llvm-svn: 107274
* Include all warnings under '-Wunused' in '-Wmost' and '-Wall'.Ted Kremenek2010-04-081-0/+2
| | | | llvm-svn: 100786
* Don't emit an 'unused expression' warning for '||' and '&&' expressions that ↵Ted Kremenek2010-04-071-0/+13
| | | | | | | | contain assignments or similar side-effects. llvm-svn: 100676
* Improve the unused-value check to look into comma expressions and filter outJohn McCall2010-03-121-0/+53
voids in sub-expressions. Patch by Mike M! Fixes PR4806. llvm-svn: 98335
OpenPOWER on IntegriCloud