__libdw_cu_addr_base: Cast offset to uintptr_t before returning as pointer.
authorMark Wielaard <mark@klomp.org>
Fri, 25 May 2018 13:46:09 +0000 (15:46 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 25 May 2018 13:47:15 +0000 (15:47 +0200)
commit059b6b1b612f04e1d8f447b080d2ecbd37fc011d
tree61d8877179d47969addadbd80a86a10caa1bf6e2
parente7765da2aebf919bf3ab8480ac07ccdee42aaf8d
__libdw_cu_addr_base: Cast offset to uintptr_t before returning as pointer.

Fixes a GCC compile issue on the elfutils-debian-i686 buildbot builder:

dwarf_getlocation_attr.c: In function ‘addr_valp’:
dwarf_getlocation_attr.c:62:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
     return (unsigned char *) offset;
            ^
cc1: all warnings being treated as errors

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_getlocation_attr.c