implicit conversion from enum ld_plugin_level to enum ld_plugin_status

Message ID 20190923141327.GG3685@bubble.grove.modra.org
State New
Headers show
Series
  • implicit conversion from enum ld_plugin_level to enum ld_plugin_status
Related show

Commit Message

Alan Modra Sept. 23, 2019, 2:13 p.m.
This is a gcc10 warning fix.

gold/
	* testsuite/plugin_new_section_layout.c (new_input_hook): Correct
	return status enum values.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/gold/testsuite/plugin_new_section_layout.c b/gold/testsuite/plugin_new_section_layout.c
index 2fe0d5ea33..91a7c952b4 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,