PATCH, libiberty: silence warning

Ian Lance Taylor iant@google.com
Thu Dec 18 08:09:00 GMT 2008


Ben Elliston <bje@au1.ibm.com> writes:

> This patch silences a warning about a potentially uninitialised variable
> when compiling cp-demangle.c.  This is arguably a weakness of my build
> system compiler, but I don't see any harm in initialising it.
>
> Okay for the trunk?
>
> 2008-12-18  Ben Elliston  <bje@auibm.com>
>
>         * cp-demangle.c (cplus_demangle_type): Initialise ret.

I think the warning is correct.  What happens if you fix the 'D' case
in that function to add a default to the switch which returns NULL?

Ian



More information about the Gcc-patches mailing list