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]

Re: warnings when including bfd.h


On Thu, Mar 29, 2012 at 01:07:12AM +0200, Vincent Torri wrote:
> C:/MinGW_EFL/msys/1.0/local/include/bfd.h:5552:5: warning: redundant
> redeclaration of 'bfd_get_arch_size' [-Wredundant-decls]
> C:/MinGW_EFL/msys/1.0/local/include/bfd.h:706:12: note: previous
> declaration of 'bfd_get_arch_size' was here
> C:/MinGW_EFL/msys/1.0/local/include/bfd.h:5554:5: warning: redundant
> redeclaration of 'bfd_get_sign_extend_vma' [-Wredundant-decls]
> C:/MinGW_EFL/msys/1.0/local/include/bfd.h:710:12: note: previous
> declaration of 'bfd_get_sign_extend_vma' was here

	* bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
	* bfd-in2.h: Regenerate.

Index: bfd/bfd-in.h
===================================================================
RCS file: /cvs/src/src/bfd/bfd-in.h,v
retrieving revision 1.160
diff -u -p -r1.160 bfd-in.h
--- bfd/bfd-in.h	23 Mar 2012 09:27:42 -0000	1.160
+++ bfd/bfd-in.h	29 Mar 2012 13:19:50 -0000
@@ -1,8 +1,8 @@
 /* Main header file for the bfd library -- portable access to object files.
 
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
-   Free Software Foundation, Inc.
+   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
+   2012 Free Software Foundation, Inc.
 
    Contributed by Cygnus Support.
 
@@ -694,14 +694,6 @@ extern bfd *bfd_elf_bfd_from_remote_memo
   (bfd *templ, bfd_vma ehdr_vma, bfd_vma *loadbasep,
    int (*target_read_memory) (bfd_vma vma, bfd_byte *myaddr, int len));
 
-/* Return the arch_size field of an elf bfd, or -1 if not elf.  */
-extern int bfd_get_arch_size
-  (bfd *);
-
-/* Return TRUE if address "naturally" sign extends, or -1 if not elf.  */
-extern int bfd_get_sign_extend_vma
-  (bfd *);
-
 extern struct bfd_section *_bfd_elf_tls_setup
   (bfd *, struct bfd_link_info *);
 
 

-- 
Alan Modra
Australia Development Lab, IBM


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