mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Avoid pointer type mismatch warning.
update_get_addr returns a link_map*, but the return expression was of type char*. Fix by relying on gcc's void* arithmetic extension and auto-conversion from void*.
This commit is contained in:
parent
e216c0121a
commit
57b957eb04
@ -1,3 +1,7 @@
|
||||
2012-02-09 Richard Henderson <rth@twiddle.net>
|
||||
|
||||
* elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
|
||||
|
||||
2012-02-08 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
* libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
|
||||
|
@ -756,7 +756,7 @@ update_get_addr (GET_ADDR_ARGS)
|
||||
if (__builtin_expect (p == TLS_DTV_UNALLOCATED, 0))
|
||||
return tls_get_addr_tail (GET_ADDR_PARAM, dtv, the_map);
|
||||
|
||||
return (char *) p + GET_ADDR_OFFSET;
|
||||
return (void *) p + GET_ADDR_OFFSET;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user