<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Currently, -Wsign-compare will warn if conditional operands differ in signedness. This patch will move this warning to -Wmixed-sign-conditional<br>
</blockquote><div><br>What exactly are the semantics of mismatched sign types in a conditional expression? Is one of the arguments silently forced into (signed or unsigned) of the same size? Would it be possible to catch that coercion as a general case, rather than looking at the conditional operator specifically?<br>
<br>[I suppose the -Wsign-conversion warning that Chandler mentioned would be the user facing equivalent of this. Then my question becomes: Can that warning be implemented in a general way such that there's no need to do specific work for the conditional operator case]<br>
</div></div>