[PATCH] D77611: [Sema] fix -Wunused-result in StmtExpr

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 12:34:19 PDT 2020


dblaikie added a comment.

In D77611#1967488 <https://reviews.llvm.org/D77611#1967488>, @nickdesaulniers wrote:

> Note your test case is related to `-Wunused-value`, mine is `-Wunused-result` (via the use of `__attribute__((warn_result_unused))` which we should always warn about.


Right, but the code you're looking at/proposing to change is related to all unused expression warnings, by the looks of it?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77611/new/

https://reviews.llvm.org/D77611





More information about the cfe-commits mailing list