summaryrefslogtreecommitdiff
path: root/libpthread/nptl_db/td_thr_tlsbase.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-14 08:49:52 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-14 18:31:49 +0100
commit783d7405385ece1698601019d8220aff8082865b (patch)
tree85322b2e90aaf0d3d9dacb1144dd18bc686a7331 /libpthread/nptl_db/td_thr_tlsbase.c
parentff530271e47b68345aaecf939988d8a0e1823956 (diff)
nptl_db: fix gcc compiler warnings
Diffstat (limited to 'libpthread/nptl_db/td_thr_tlsbase.c')
-rw-r--r--libpthread/nptl_db/td_thr_tlsbase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/nptl_db/td_thr_tlsbase.c b/libpthread/nptl_db/td_thr_tlsbase.c
index 9f98bd9ae..3e1e4663f 100644
--- a/libpthread/nptl_db/td_thr_tlsbase.c
+++ b/libpthread/nptl_db/td_thr_tlsbase.c
@@ -24,12 +24,12 @@ td_thr_tlsbase (const td_thrhandle_t *th,
psaddr_t *base)
{
td_err_e err;
- psaddr_t dtv, dtvslot, dtvptr;
+ psaddr_t dtv, dtvslot, dtvptr, pd;
if (modid < 1)
return TD_NOTLS;
- psaddr_t pd = th->th_unique;
+ pd = th->th_unique;
if (pd == 0)
{
/* This is the fake handle for the main thread before libpthread