From: Ulrich Drepper Date: Sat, 29 Oct 2011 16:40:55 +0000 (-0400) Subject: Avoid warning in dl-lookup.c X-Git-Tag: glibc-2.15~138 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bc3307181a2213a4d7253bced376c3de021605e;p=platform%2Fupstream%2Fglibc.git Avoid warning in dl-lookup.c --- diff --git a/ChangeLog b/ChangeLog index 8e0c37c..fbef6bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2011-10-29 Ulrich Drepper + * elf/dl-lookup.c (_dl_setup_hash): Avoid warning. + [BZ #13335] * elf/chroot_canon.c (chroot_canon): Fix readlink call. Patch by Thomas Jarosch . diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c index affb53f..e655d14 100644 --- a/elf/dl-lookup.c +++ b/elf/dl-lookup.c @@ -860,7 +860,6 @@ internal_function _dl_setup_hash (struct link_map *map) { Elf_Symndx *hash; - Elf_Symndx nchain; if (__builtin_expect (map->l_info[DT_ADDRTAGIDX (DT_GNU_HASH) + DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM @@ -892,7 +891,8 @@ _dl_setup_hash (struct link_map *map) hash = (void *) D_PTR (map, l_info[DT_HASH]); map->l_nbuckets = *hash++; - nchain = *hash++; + /* Skip nchain. */ + hash++; map->l_buckets = hash; hash += map->l_nbuckets; map->l_chain = hash;