From 23ecb97906a418f54b3c55bfbb2f9d3c4d156018 Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Fri, 7 Sep 2012 08:54:08 +0300 Subject: [PATCH] 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] --- src/ia64/init.h | 10 ++++------ 1 file 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);