This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

elf32-rl78.c build warning [Re: New port: Renesas RL78]


On Tue, 25 Oct 2011 00:40:06 +0200, DJ Delorie wrote:
> +/* Merge backend specific data from an object file to the output
> +   object file when linking.  */
> +
> +static bfd_boolean
> +rl78_elf_merge_private_bfd_data (bfd * ibfd, bfd * obfd)
> +{
> +  flagword old_flags;
> +  flagword new_flags;
> +  bfd_boolean error = FALSE;
> +
> +  new_flags = elf_elfheader (ibfd)->e_flags;
> +  old_flags = elf_elfheader (obfd)->e_flags;
> +
> +  if (!elf_flags_init (obfd))
> +    {
> +      /* First call, no flags set.  */
> +      elf_flags_init (obfd) = TRUE;
> +      elf_elfheader (obfd)->e_flags = new_flags;
> +    }
> +
> +  return !error;
> +}

elf32-rl78.c: In function ‘rl78_elf_merge_private_bfd_data’:
elf32-rl78.c:1016:12: error: variable ‘old_flags’ set but not used [-Werror=unused-but-set-variable]


Regards,
Jan


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