typeck.c (build_binary_op): Do signed/unsigned warnings for >?
* typeck.c (build_binary_op): Do signed/unsigned warnings for >? and <? operators. From-SVN: r38222
This commit is contained in:
parent
75444da786
commit
8d3b081e50
@ -1,3 +1,8 @@
|
||||
2000-12-11 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* typeck.c (build_binary_op): Do signed/unsigned warnings for >?
|
||||
and <? operators.
|
||||
|
||||
2000-12-08 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* error.c (dump_function_name): Don't let the user see __comp_ctor.
|
||||
|
@ -3921,7 +3921,8 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
|
||||
resultcode = xresultcode;
|
||||
}
|
||||
|
||||
if (short_compare && warn_sign_compare)
|
||||
if ((short_compare || code == MIN_EXPR || code == MAX_EXPR)
|
||||
&& warn_sign_compare)
|
||||
{
|
||||
int op0_signed = ! TREE_UNSIGNED (TREE_TYPE (orig_op0));
|
||||
int op1_signed = ! TREE_UNSIGNED (TREE_TYPE (orig_op1));
|
||||
|
Loading…
Reference in New Issue
Block a user