This is the mail archive of the binutils-cvs@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]

[binutils-gdb] implicit conversion from enum ld_plugin_level to enum ld_plugin_status


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6831670dd3c0a64e332b316c95873c57ab19887a

commit 6831670dd3c0a64e332b316c95873c57ab19887a
Author: Alan Modra <amodra@gmail.com>
Date:   Mon Sep 23 20:30:22 2019 +0930

    implicit conversion from enum ld_plugin_level to enum ld_plugin_status
    
    This is a gcc10 warning fix.
    
    gold/
    	* testsuite/plugin_new_section_layout.c (new_input_hook): Correct
    	return status enum values.

Diff:
---
 gold/ChangeLog                             | 5 +++++
 gold/testsuite/plugin_new_section_layout.c | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gold/ChangeLog b/gold/ChangeLog
index 37643cc..53ee2b9 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+	* testsuite/plugin_new_section_layout.c (new_input_hook): Correct
+	return status enum values.
+
 2019-09-20  Alan Modra  <amodra@gmail.com>
 
 	PR 24768
diff --git a/gold/testsuite/plugin_new_section_layout.c b/gold/testsuite/plugin_new_section_layout.c
index 2fe0d5e..91a7c95 100644
--- a/gold/testsuite/plugin_new_section_layout.c
+++ b/gold/testsuite/plugin_new_section_layout.c
@@ -144,12 +144,12 @@ new_input_hook(const struct ld_plugin_input_file *file)
     section.shndx = i;
 
     if (get_input_section_type(section, &type) != LDPS_OK)
-      return LDPL_FATAL;
+      return LDPS_ERR;
     if (type != SHT_PROGBITS)
       continue;
 
     if (get_input_section_name(section, &name))
-      return LDPL_FATAL;
+      return LDPS_ERR;
 
     /* As in plugin_section_order.c, order is foo() followed by bar()
        followed by baz() */
@@ -172,7 +172,7 @@ new_input_hook(const struct ld_plugin_input_file *file)
   }
 
   if (num_entries != 3)
-    return LDPL_FATAL;
+    return LDPS_ERR;
 
   update_section_order(section_list, num_entries);
   unique_segment_for_sections (".text.plugin_created_unique", 0, 0x1000,


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