[PATCH]: Fix -Wc++-compat and -Wcast-qual warnings [d-g]*.c

Gabriel Dos Reis gdr@integrable-solutions.net
Wed Jun 25 08:36:00 GMT 2008


On Tue, Jun 24, 2008 at 6:31 PM, Kaveh R. GHAZI <ghazi@caip.rutgers.edu> wrote:
> This patch eliminates -Wc++-compat and -Wcast-qual warnings in [d-g]*.c.
> It uses the new alloca and obstack allocator macros I recently added to
> libiberty to minimize the use of explicit casts.
>
> Tested in conjunction with my previous warning cleanup patches:
> http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01546.html
> http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01547.html
> http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01478.html
>
> With these patches together, we're down to about 125 warnings left.
>
> No regressions on x86_64-unknown-linux-gnu, okay for mainline?

This looks good to me; Richard or Ian, OK?

-- Gaby



More information about the Gcc-patches mailing list