[binutils-gdb] Fix signedness comparison warning in elfcore_grok_win32pstatus()
Jon TURNEY
jturney@sourceware.org
Wed Aug 12 15:39:43 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2fef937354881d1de567b2c0df28718acd8198df
commit 2fef937354881d1de567b2c0df28718acd8198df
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Wed Aug 12 16:34:47 2020 +0100
Fix signedness comparison warning in elfcore_grok_win32pstatus()
bfd/ChangeLog:
2020-08-12 Jon Turney <jon.turney@dronecode.org.uk>
* elf.c (elfcore_grok_win32pstatus): Use unsigned int for
win32pstatus note type to avoid signedness comparison warning.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/elf.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5539e980d6d..a2342588e80 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2020-08-12 Jon Turney <jon.turney@dronecode.org.uk>
+
+ * elf.c (elfcore_grok_win32pstatus): Use unsigned int for
+ win32pstatus note type to avoid signedness comparison warning.
+
2020-07-21 Jon Turney <jon.turney@dronecode.org.uk>
* elf.c (elfcore_grok_win32pstatus): Warn on malformed
diff --git a/bfd/elf.c b/bfd/elf.c
index e8c457cd5d5..54c72043418 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -10142,7 +10142,7 @@ elfcore_grok_win32pstatus (bfd *abfd, Elf_Internal_Note *note)
size_t len;
size_t name_size;
asection *sect;
- int type;
+ unsigned int type;
int is_active_thread;
bfd_vma base_addr;
More information about the Binutils-cvs
mailing list