* v850_elf_set_note prototype
@ 2022-05-31 11:47 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-05-31 11:47 UTC (permalink / raw)
To: binutils
v850_elf_set_note is declared using an unsigned int note param in
elf32-v850.h but defined with enum c850_notes note in elf32-v850.c.
Current mainline gcc is warning about this. Huh.
* elf32-v850.c (v850_elf_set_note): Make "note" param an
unsigned int.
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index 9522c275dea..4fb17a0f6de 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -2414,7 +2414,7 @@ v850_elf_create_sections (struct bfd_link_info * info)
}
bool
-v850_elf_set_note (bfd * abfd, enum v850_notes note, unsigned int val)
+v850_elf_set_note (bfd * abfd, unsigned int note, unsigned int val)
{
asection * notes = bfd_get_section_by_name (abfd, V850_NOTE_SECNAME);
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-31 11:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 11:47 v850_elf_set_note prototype Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).