[PATCH] D77611: [Sema] Check calls to __attribute__((warn_unused_result)) from StmtExprs
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 7 16:22:50 PDT 2020
dblaikie added a comment.
Looks like GCC warns on everything but the last unused expression (the last one being the return statement) - only warning on that last one if it's ultimately unused by the statement expression function call, as it were (& is annotated warn_unused_result). Basically, it models it like a function in a way that Clang perhaps does not?
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