aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-08-12 16:34:47 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2020-08-12 16:39:25 +0100
commit2fef937354881d1de567b2c0df28718acd8198df (patch)
tree0a680ffe700337aa37e97268f63cace00a807814
parentd3511b24ea82409d1769a3b62d0996fe813635d4 (diff)
downloadgdb-2fef937354881d1de567b2c0df28718acd8198df.zip
gdb-2fef937354881d1de567b2c0df28718acd8198df.tar.gz
gdb-2fef937354881d1de567b2c0df28718acd8198df.tar.bz2
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.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5539e98..a234258 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 e8c457c..54c7204 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;