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: [OB] eliminate unused local


On Wednesday 05 May 2010 19:55:36, Michael Snyder wrote:
> 2010-05-05  Michael Snyder  <msnyder@vmware.com>
> 
>         * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
>         Delete unused variable 'type'.

The patch also deleted `field_type'.  But in any case, this
is a generated file; you should fix the source of the problem
instead.

> 
> Index: features/i386/i386-mmx.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/features/i386/i386-mmx.c,v
> retrieving revision 1.1
> diff -u -p -r1.1 i386-mmx.c
> --- features/i386/i386-mmx.c    8 Apr 2010 22:32:38 -0000       1.1
> +++ features/i386/i386-mmx.c    5 May 2010 18:53:08 -0000
> @@ -10,7 +10,6 @@ initialize_tdesc_i386_mmx (void)
>  {
>    struct target_desc *result = allocate_target_description ();
>    struct tdesc_feature *feature;
> -  struct tdesc_type *field_type, *type;
>  
>    set_tdesc_architecture (result, bfd_scan_arch ("i386"));
>  


-- 
Pedro Alves


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