c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for discarding qualifiers into...
authorJoseph Myers <jsm28@cam.ac.uk>
Mon, 31 Jul 2000 13:01:23 +0000 (07:01 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 31 Jul 2000 13:01:23 +0000 (07:01 -0600)
        * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
        discarding qualifiers into a plain warning.

From-SVN: r35374

gcc/ChangeLog
gcc/c-typeck.c

index f77c2ad0ce8687c668b09fc5dfbc1aed0105a929..95f346788c137223b4d5638e90764b8da2dd23f7 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-31  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
+       discarding qualifiers into a plain warning.
+
 2000-07-31  Kazu Hirata  <kazu@hxi.com>
 
        * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
index a8fa6b55152d256c6a74f43325a74eefdeea3483..17cdedd7279b7eeccdbb9dc3a3dc488fe5213242 100644 (file)
@@ -3765,7 +3765,7 @@ build_c_cast (type, expr)
          if (warn)
            /* There are qualifiers present in IN_OTYPE that are not
               present in IN_TYPE.  */
-           pedwarn ("cast discards qualifiers from pointer target type");
+           warning ("cast discards qualifiers from pointer target type");
        }
 
       /* Warn about possible alignment problems.  */