diff --git a/src/stack_check.h b/src/stack_check.h index d2294a2cd0160c3697b37cd36cfe7d1900b1a76c..67aaaa94b53a3049ae1f62a8c36eb18917e05b8e 100644 --- a/src/stack_check.h +++ b/src/stack_check.h @@ -46,7 +46,7 @@ static void stack_check_init(void) static int stack_check_fn(unsigned long *entries, unsigned int nr_entries, bool install) { - int i, ret; + int i; unsigned long *func_addr; unsigned long *func_size; @@ -60,6 +60,7 @@ static int stack_check_fn(unsigned long *entries, unsigned int nr_entries, bool for (i = 0; i < nr_entries; i++) { int idx; + unsigned long address = entries[i]; idx = bsearch(func_addr, 0, NR_INTERFACE_FN - 1, address); if (idx == -1)