aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2020-01-03 10:11:50 +0100
committerJan Beulich <jbeulich@suse.com>2020-01-03 10:11:50 +0100
commit4bb7a87e74e66a7d32cbd39e6fc8e54f25a5ad0d (patch)
tree9d5dd983f85644632a0a34cf39a082cc884fd957 /binutils
parent6e2118f588c6f33a741a706725f8e23db57251b3 (diff)
downloadgdb-4bb7a87e74e66a7d32cbd39e6fc8e54f25a5ad0d.zip
gdb-4bb7a87e74e66a7d32cbd39e6fc8e54f25a5ad0d.tar.gz
gdb-4bb7a87e74e66a7d32cbd39e6fc8e54f25a5ad0d.tar.bz2
Mach-O: misc build adjustments
Oldish gcc warns about local variables shadowing outer scope ones. Additionally %lx is not (always) suitable to print the result of bfd_get_32().
Diffstat (limited to 'binutils')
-rw-r--r--binutils/od-macho.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/od-macho.c b/binutils/od-macho.c
index 456a7cb..f9d4b37 100644
--- a/binutils/od-macho.c
+++ b/binutils/od-macho.c
@@ -2011,7 +2011,7 @@ dump_obj_compact_unwind (bfd *abfd,
putchar (' ');
printf_uint64 (bfd_get_64 (abfd, e->start));
- printf (" %08lx", bfd_get_32 (abfd, e->length));
+ printf (" %08lx", (unsigned long)bfd_get_32 (abfd, e->length));
putchar (' ');
printf_uint64 (bfd_get_64 (abfd, e->personality));
putchar (' ');