From 34be77c7b22160ab82deed3c2bd9435141bd7c92 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 9 Sep 2004 13:06:01 +0000 Subject: [PATCH] (test_generic): Fix "unused variable" warning. (Logical change 1.266) --- tests/test-static-link-gen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-static-link-gen.c b/tests/test-static-link-gen.c index fe421781..32464169 100644 --- a/tests/test-static-link-gen.c +++ b/tests/test-static-link-gen.c @@ -53,20 +53,20 @@ static void *funcs[] = int test_generic (void) { - unw_cursor_t c; - if (verbose) printf (__FILE__": funcs[0]=%p\n", funcs[0]); #ifndef UNW_REMOTE_ONLY { unw_context_t uc; + unw_cursor_t c; unw_getcontext (&uc); unw_init_local (&c, &uc); unw_init_remote (&c, unw_local_addr_space, &uc); + + return unw_step (&c); } - return unw_step (&c); #else return 0; #endif