From: Roland McGrath Date: Fri, 3 Mar 2006 11:21:28 +0000 (+0000) Subject: 2006-03-02 Roland McGrath X-Git-Tag: glibc-2.16-ports-before-merge~895 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b834ecbda3c0656675fb2b591a1c93cd03272cb3;p=thirdparty%2Fglibc.git 2006-03-02 Roland McGrath * sysdeps/unix/alpha/sysdep.h (PTR_MANGLE): Use __typeof in cast. --- diff --git a/sysdeps/unix/alpha/sysdep.h b/sysdeps/unix/alpha/sysdep.h index 2260ec54800..2e5bc798eb9 100644 --- a/sysdeps/unix/alpha/sysdep.h +++ b/sysdeps/unix/alpha/sysdep.h @@ -415,7 +415,7 @@ __LABEL(name) \ # else extern uintptr_t __pointer_chk_guard_local attribute_relro attribute_hidden; # define PTR_MANGLE(var) \ - (var) = (void *) ((uintptr_t) (var) ^ __pointer_chk_guard_local) + (var) = (__typeof (var)) ((uintptr_t) (var) ^ __pointer_chk_guard_local) # define PTR_DEMANGLE(var) PTR_MANGLE(var) # endif #elif defined PIC