[PATCH] unused variables in dl-reloc.c
Thorsten Kukuk
kukuk@suse.de
Wed Oct 1 20:44:00 GMT 2003
Hi,
when compiling glibc, I got two warnings about unused variables
elf/dl-reloc.c (_dl_allocate_static_tls): used and check.
Patch attached to move this variables into the #if tree, like Uli
did this already with some others.
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE Linux AG Deutschherrnstr. 15-19 D-90429 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B
-------------- next part --------------
2003-10-01 Thorsten Kukuk <kukuk@suse.de>
* elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
variables only used if TLS_DTV_AT_TP is defined into the #if
branch.
--- elf/dl-reloc.c
+++ elf/dl-reloc.c 2003/10/01 11:28:30
@@ -49,8 +49,6 @@
_dl_allocate_static_tls (struct link_map *map)
{
size_t offset;
- size_t used;
- size_t check;
/* If the alignment requirements are too high fail. */
if (map->l_tls_align > GL(dl_tls_static_align))
@@ -78,6 +76,9 @@
map->l_tls_offset = GL(dl_tls_static_used) = offset;
# elif TLS_DTV_AT_TP
+ size_t used;
+ size_t check;
+
offset = roundup (GL(dl_tls_static_used), map->l_tls_align);
used = offset + map->l_tls_blocksize;
check = used;
More information about the Libc-alpha
mailing list