From 2218e61faa1cee0da3948c1c6aa4470cd9b21954 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Thu, 26 Apr 2018 04:46:41 +0000 Subject: [PATCH] added static to backtrace_stack_frames() --- moo/lib/err.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moo/lib/err.c b/moo/lib/err.c index 667e12c..d3fc02a 100644 --- a/moo/lib/err.c +++ b/moo/lib/err.c @@ -472,7 +472,7 @@ void moo_setsynerr (moo_t* moo, moo_synerrnum_t num, const moo_ioloc_t* loc, con * STACK FRAME BACKTRACE * -------------------------------------------------------------------------- */ #if defined(MOO_ENABLE_LIBUNWIND) -void backtrace_stack_frames (moo_t* moo) +static void backtrace_stack_frames (moo_t* moo) { unw_cursor_t cursor; unw_context_t context; @@ -501,7 +501,7 @@ void backtrace_stack_frames (moo_t* moo) } } #elif defined(HAVE_BACKTRACE) -void backtrace_stack_frames (moo_t* moo) +static void backtrace_stack_frames (moo_t* moo) { void* btarray[128]; moo_oow_t btsize; @@ -522,7 +522,7 @@ void backtrace_stack_frames (moo_t* moo) } } #else -void backtrace_stack_frames (moo_t* moo) +static void backtrace_stack_frames (moo_t* moo) { /* do nothing. not supported */ }