Fix compile time warning for sh-symbianelf target

Nick Clifton nickc@redhat.com
Mon Mar 21 19:47:00 GMT 2005


Hi Guys,

  I am applying the patch below to fix a compile time warning for the
  sh-symbianelf target.

Cheers
  Nick
  
2005-03-21  Nick Clifton  <nickc@redhat.com>

	* config/tc-sh.c (sh_elf_final_processing): Fix compile time
	warning by providing a prototype for sh_symbian_find_elf_flags.

Index: gas/config/tc-sh.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sh.c,v
retrieving revision 1.106
diff -c -3 -p -r1.106 tc-sh.c
*** gas/config/tc-sh.c	23 Feb 2005 12:28:05 -0000	1.106
--- gas/config/tc-sh.c	21 Mar 2005 15:32:59 -0000
*************** sh_elf_final_processing (void)
*** 3777,3783 ****
    else
  #elif defined TARGET_SYMBIAN
      if (1)
!       val = sh_symbian_find_elf_flags (valid_arch);
      else
  #endif /* HAVE_SH64 */
      val = sh_find_elf_flags (valid_arch);
--- 3777,3787 ----
    else
  #elif defined TARGET_SYMBIAN
      if (1)
!       {
! 	extern int sh_symbian_find_elf_flags (unsigned int);
! 
! 	val = sh_symbian_find_elf_flags (valid_arch);
!       }
      else
  #endif /* HAVE_SH64 */
      val = sh_find_elf_flags (valid_arch);



More information about the Binutils mailing list