summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-12 10:08:16 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:06:07 +0300
commit074e328d4636c7cea4af6e2910953b49929ed946 (patch)
treed3e7dc5a95ad532882aad09c46c9717afcb76ec8
parent68b20804e4e7098bd81bc42e2efd733b7cec8374 (diff)
downloadlibunwind-074e328d4636c7cea4af6e2910953b49929ed946.tar.gz
Avoid -Wunused-value warning in tests/Gia64-test-stack.c
tests/Gia64-test-stack.c: In function 'do_unwind_tests': tests/Gia64-test-stack.c:91: warning: value computed is not used
-rw-r--r--tests/Gia64-test-stack.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Gia64-test-stack.c b/tests/Gia64-test-stack.c
index 2b47f3d4..05874b29 100644
--- a/tests/Gia64-test-stack.c
+++ b/tests/Gia64-test-stack.c
@@ -81,14 +81,15 @@ do_unwind_tests (void)
{
v0 = v1 = v2 = v3 = 0;
n0 = n1 = n2 = n3 = 0;
- ((ret = unw_get_reg (&c, UNW_IA64_GR + reg, &v0)) < 0
+ (void)
+ ((ret = unw_get_reg (&c, UNW_IA64_GR + reg, &v0)) < 0
|| (ret = unw_get_reg (&c, UNW_IA64_NAT + reg, &n0)) < 0
|| (ret = unw_get_reg (&c, UNW_IA64_GR + reg + 1, &v1)) < 0
|| (ret = unw_get_reg (&c, UNW_IA64_NAT + reg + 1, &n1)) < 0
|| (ret = unw_get_reg (&c, UNW_IA64_GR + reg + 2, &v2)) < 0
|| (ret = unw_get_reg (&c, UNW_IA64_NAT + reg + 2, &n2)) < 0
|| (ret = unw_get_reg (&c, UNW_IA64_GR + reg + 3, &v3)) < 0
- || (ret = unw_get_reg (&c, UNW_IA64_NAT + reg + 3, &n3)) < 0);
+ || (ret = unw_get_reg (&c, UNW_IA64_NAT + reg + 3, &n3)) < 0);
if (reg < 100)
printf (" r%d", reg);
else