This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for PR c/85 (-Wcast-qual pedwarn)
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: Patch for PR c/85 (-Wcast-qual pedwarn)
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 31 Jul 2000 07:02:50 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <Pine.SOL.4.21.0007302304230.6958-100000@orange.csi.cam.ac.uk>you
write:
> This patch fixes PR c/85: the -Wcast-qual warning for casts discarding
> qualifiers should not become an error with -pedantic-errors. (The
> similar warning for assignments, however, does correctly become an
> error with -pedantic-errors; discarding qualifiers needs an explicit
> cast.)
>
> Bootstrapped with no regressions on i686-pc-linux-gnu.
>
> 2000-07-30 Joseph S. Myers <jsm28@cam.ac.uk>
>
> * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
> discarding qualifiers into a plain warning.
Thanks. Installed.
jeff