(unsigned_conversion_warning): Just use `warning',
authorPaul Eggert <eggert@gnu.org>
Mon, 12 Jul 1993 21:10:27 +0000 (21:10 +0000)
committerPaul Eggert <eggert@gnu.org>
Mon, 12 Jul 1993 21:10:27 +0000 (21:10 +0000)
not `pedwarn'; these diagnostics are not required by Standard C.

From-SVN: r4909

gcc/c-common.c

index 087332c98b9aa43faee85e538c84f8ef322fdfe2..fae1e44550b000c8a072dbef6f76cedcab2cff11 100644 (file)
@@ -387,9 +387,9 @@ unsigned_conversion_warning (result, operand)
     {
       if (!int_fits_type_p (operand, signed_type (TREE_TYPE (result))))
        /* 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)
-       pedwarn ("negative integer implicitly converted to unsigned type");
+       warning ("negative integer implicitly converted to unsigned type");
     }
 }