From 4bb7a87e74e66a7d32cbd39e6fc8e54f25a5ad0d Mon Sep 17 00:00:00 2001 From: Jan Beulich <jbeulich@suse.com> Date: Fri, 3 Jan 2020 10:11:50 +0100 Subject: 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(). --- binutils/od-macho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binutils') 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 (' '); -- cgit v1.1