From f82c43af8aebc5a270c8be06055ee5a38063bac3 Mon Sep 17 00:00:00 2001 From: Kaz Kojima Date: Fri, 12 Dec 2014 08:07:35 +0900 Subject: * Fix SH specific compiler warnings which are for integer-pointer type conversions without cast. --- sysdeps/sh/jmpbuf-unwind.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/sh/jmpbuf-unwind.h') diff --git a/sysdeps/sh/jmpbuf-unwind.h b/sysdeps/sh/jmpbuf-unwind.h index 99adec3950..43b1e9ceab 100644 --- a/sysdeps/sh/jmpbuf-unwind.h +++ b/sysdeps/sh/jmpbuf-unwind.h @@ -32,11 +32,11 @@ static inline uintptr_t __attribute__ ((unused)) _jmpbuf_sp (__jmp_buf regs) { - uintptr_t sp = regs[0].__regs[7]; + void *sp = (void *) regs[0].__regs[7]; #ifdef PTR_DEMANGLE PTR_DEMANGLE (sp); #endif - return sp; + return (uintptr_t) sp; } #define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \ -- cgit v1.2.3