This is the mail archive of the binutils@sources.redhat.com 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]

ldwrite.c warning fix


Committed.

ld/ChangeLog
	* ldwrite.c (clone_section): Silence gcc warnings.

Alan Modra
-- 
Linuxcare.  Support for the Revolution.
 
 	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
Index: ldwrite.c
===================================================================
RCS file: /cvs/src/src/ld/ldwrite.c,v
retrieving revision 1.4
diff -u -p -r1.4 ldwrite.c
--- ldwrite.c	2000/09/20 04:20:26	1.4
+++ ldwrite.c	2000/09/21 14:15:43
@@ -319,7 +319,11 @@ clone_section (abfd, s, name, count)
       || (n = bfd_make_section_anyway (abfd, sname)) == NULL
       || (h = bfd_link_hash_lookup (link_info.hash,
 				    sname, true, true, false)) == NULL)
-    einfo (_("%F%P: clone section failed: %E\n"));
+    {
+      einfo (_("%F%P: clone section failed: %E\n"));
+      /* Silence gcc warnings.  einfo exits, so we never reach here.  */
+      return NULL;
+    }
 
   /* Set up section symbol.  */
   h->type = bfd_link_hash_defined;


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