[PATCH 2/348] Fix -Wshadow warnings

Joel Brobecker brobecker@adacore.com
Wed Nov 23 19:40:00 GMT 2011


>  thin_descriptor_type (struct type *type)
>  {
> -  struct type *base_type = desc_base_type (type);
> +  struct type *btype = desc_base_type (type);

For this one, I solved it the other way. I didn't like "btype" as
a name, and "base_type" was just perfect. So I renamed the colliding
function to "get_base_type".  This should make this change unnecessary.

-- 
Joel



More information about the Gdb-patches mailing list