summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-07 08:54:08 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:06:07 +0300
commit23ecb97906a418f54b3c55bfbb2f9d3c4d156018 (patch)
tree9e42acb19c52c6763a0635367be485531e1675ef
parentb4bde18112016cb720f3df2c0f23f5897f85f7b3 (diff)
downloadlibunwind-23ecb97906a418f54b3c55bfbb2f9d3c4d156018.tar.gz
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]
-rw-r--r--src/ia64/init.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ia64/init.h b/src/ia64/init.h
index d6a1b227..1f3f956d 100644
--- a/src/ia64/init.h
+++ b/src/ia64/init.h
@@ -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);