This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/348] Fix -Wshadow warnings


>  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]