OSDN Git Service

(unsigned_conversion_warning): Just use `warning',
authoreggert <eggert@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jul 1993 21:10:27 +0000 (21:10 +0000)
committereggert <eggert@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jul 1993 21:10:27 +0000 (21:10 +0000)
not `pedwarn'; these diagnostics are not required by Standard C.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4909 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index 087332c..fae1e44 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");
     }
 }