[cfe-dev] The Conditional Operator and Unused Results

Justin Bogner mail at justinbogner.com
Sat Oct 2 14:18:32 PDT 2010


Justin Bogner <mail at justinbogner.com> writes:
> Currently, (x ? y : z) warns if either y or z would warn. Should this be
> changed to warn only if both y and z would warn?

The attached patch implements this behaviour.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: conditionally-unused.patch
Type: text/x-diff
Size: 1573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101002/acbdc747/attachment.patch>


More information about the cfe-dev mailing list