mirror of
https://github.com/FEX-Emu/libunwind.git
synced 2024-12-03 20:00:40 +00:00
(test_generic): Fix "unused variable" warning.
(Logical change 1.266)
This commit is contained in:
parent
cb4fda9750
commit
34be77c7b2
@ -53,20 +53,20 @@ static void *funcs[] =
|
|||||||
int
|
int
|
||||||
test_generic (void)
|
test_generic (void)
|
||||||
{
|
{
|
||||||
unw_cursor_t c;
|
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
printf (__FILE__": funcs[0]=%p\n", funcs[0]);
|
printf (__FILE__": funcs[0]=%p\n", funcs[0]);
|
||||||
|
|
||||||
#ifndef UNW_REMOTE_ONLY
|
#ifndef UNW_REMOTE_ONLY
|
||||||
{
|
{
|
||||||
unw_context_t uc;
|
unw_context_t uc;
|
||||||
|
unw_cursor_t c;
|
||||||
|
|
||||||
unw_getcontext (&uc);
|
unw_getcontext (&uc);
|
||||||
unw_init_local (&c, &uc);
|
unw_init_local (&c, &uc);
|
||||||
unw_init_remote (&c, unw_local_addr_space, &uc);
|
unw_init_remote (&c, unw_local_addr_space, &uc);
|
||||||
|
|
||||||
|
return unw_step (&c);
|
||||||
}
|
}
|
||||||
return unw_step (&c);
|
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user