mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-25 00:27:39 +01:00
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
This commit is contained in:
parent
68b20804e4
commit
074e328d46
1 changed files with 3 additions and 2 deletions
|
@ -81,14 +81,15 @@ do_unwind_tests (void)
|
||||||
{
|
{
|
||||||
v0 = v1 = v2 = v3 = 0;
|
v0 = v1 = v2 = v3 = 0;
|
||||||
n0 = n1 = n2 = n3 = 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_NAT + reg, &n0)) < 0
|
||||||
|| (ret = unw_get_reg (&c, UNW_IA64_GR + reg + 1, &v1)) < 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_NAT + reg + 1, &n1)) < 0
|
||||||
|| (ret = unw_get_reg (&c, UNW_IA64_GR + reg + 2, &v2)) < 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_NAT + reg + 2, &n2)) < 0
|
||||||
|| (ret = unw_get_reg (&c, UNW_IA64_GR + reg + 3, &v3)) < 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)
|
if (reg < 100)
|
||||||
printf (" r%d", reg);
|
printf (" r%d", reg);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue