[PATCH] Warning on unused results in an unevaluated context

Aaron Ballman aaron at aaronballman.com
Wed Oct 15 13:07:11 PDT 2014


We currently emit diagnostics warning about unused results while in an
unevaluated context. This seems a bit strange to me, since an
unevaluated context implies we aren't using *any* results. This patch
addresses that by not emitting such diagnostics from an unevaluated
context. It also fixes PR18571.

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: warn_unused.patch
Type: application/octet-stream
Size: 1776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141015/ef575be5/attachment.obj>


More information about the cfe-commits mailing list