mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-21 23:27:39 +01:00
IA64: avoid -Wunused-but-set-variable in src/ia64/init.h
In file included from src/ia64/Ginit_remote.c:26:0: src/ia64/init.h: In function 'common_init': src/ia64/init.h:32:12: warning: variable 'natp' set but not used [-Wunused-but-set-variable]
This commit is contained in:
parent
b4bde18112
commit
23ecb97906
1 changed files with 4 additions and 6 deletions
|
@ -29,7 +29,6 @@ static ALWAYS_INLINE int
|
|||
common_init (struct cursor *c, unw_word_t sp, unw_word_t bsp)
|
||||
{
|
||||
unw_word_t bspstore, rbs_base;
|
||||
uint8_t *natp;
|
||||
int ret;
|
||||
|
||||
if (c->as->caching_policy != UNW_CACHE_NONE)
|
||||
|
@ -53,11 +52,10 @@ common_init (struct cursor *c, unw_word_t sp, unw_word_t bsp)
|
|||
c->loc[IA64_REG_R6] = IA64_REG_LOC (c, UNW_IA64_GR + 6);
|
||||
c->loc[IA64_REG_R7] = IA64_REG_LOC (c, UNW_IA64_GR + 7);
|
||||
|
||||
natp = c->nat_bitnr;
|
||||
c->loc[IA64_REG_NAT4] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 4, &natp[0]);
|
||||
c->loc[IA64_REG_NAT5] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 5, &natp[1]);
|
||||
c->loc[IA64_REG_NAT6] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 6, &natp[2]);
|
||||
c->loc[IA64_REG_NAT7] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 7, &natp[3]);
|
||||
c->loc[IA64_REG_NAT4] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 4, &c->nat_bitnr[0]);
|
||||
c->loc[IA64_REG_NAT5] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 5, &c->nat_bitnr[1]);
|
||||
c->loc[IA64_REG_NAT6] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 6, &c->nat_bitnr[2]);
|
||||
c->loc[IA64_REG_NAT7] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 7, &c->nat_bitnr[3]);
|
||||
|
||||
c->loc[IA64_REG_B1] = IA64_REG_LOC (c, UNW_IA64_BR + 1);
|
||||
c->loc[IA64_REG_B2] = IA64_REG_LOC (c, UNW_IA64_BR + 2);
|
||||
|
|
Loading…
Reference in a new issue