Commit 90c939d4 by Paul Eggert

(unsigned_conversion_warning): Just use `warning',

not `pedwarn'; these diagnostics are not required by Standard C.

From-SVN: r4909
parent c5a3d53f
...@@ -387,9 +387,9 @@ unsigned_conversion_warning (result, operand) ...@@ -387,9 +387,9 @@ unsigned_conversion_warning (result, operand)
{ {
if (!int_fits_type_p (operand, signed_type (TREE_TYPE (result)))) if (!int_fits_type_p (operand, signed_type (TREE_TYPE (result))))
/* This detects cases like converting -129 or 256 to unsigned char. */ /* This detects cases like converting -129 or 256 to unsigned char. */
pedwarn ("large integer implicitly truncated to unsigned type"); warning ("large integer implicitly truncated to unsigned type");
else if (warn_conversion) else if (warn_conversion)
pedwarn ("negative integer implicitly converted to unsigned type"); warning ("negative integer implicitly converted to unsigned type");
} }
} }
......
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