Commit 4ae27eb6 by Jason Merrill

warn_sign_compare

From-SVN: r11299
parent d51f9363
...@@ -2439,7 +2439,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) ...@@ -2439,7 +2439,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
converted = 1; converted = 1;
resultcode = xresultcode; resultcode = xresultcode;
if (extra_warnings) if (warn_sign_compare)
{ {
int op0_signed = ! TREE_UNSIGNED (TREE_TYPE (orig_op0)); int op0_signed = ! TREE_UNSIGNED (TREE_TYPE (orig_op0));
int op1_signed = ! TREE_UNSIGNED (TREE_TYPE (orig_op1)); int op1_signed = ! TREE_UNSIGNED (TREE_TYPE (orig_op1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment