libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 09/35] IA64: avoid -Wunused-but-set-variable in


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 09/35] IA64: avoid -Wunused-but-set-variable in src/ia64/init.h
Date: Tue, 18 Sep 2012 16:31:18 +0300

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 d6a1b22..1f3f956 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);
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]