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 27/348] Fix -Wsahdow warnings


>>>>> "Andrey" == Andrey Smirnov <andrew.smirnov@gmail.com> writes:

Andrey> * bfd-target.c (target_bfd_reopen): Fix -Wshadow
Andrey> warnings.

Andrey>  struct target_ops *
Andrey> -target_bfd_reopen (struct bfd *bfd)
Andrey> +target_bfd_reopen (struct bfd *binary_descr)

I think it is more idiomatic to use 'abfd' as the name.

Andrey> +  data->bfd = binary_descr;
Andrey> +  build_section_table (binary_descr, &data->table.sections, &data->table.sections_end);

This wraps now, so it would need a line break.
Maybe not with "abfd" though.

Tom


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