From: Ivan Maidanski Date: Thu, 18 Oct 2012 04:50:36 +0000 (+0400) Subject: Define old_bus_handler static variable only if used (Unix) X-Git-Tag: gc7_4_0~196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edcff418a9130636a689d14f87e25ad89d68857a;p=gc Define old_bus_handler static variable only if used (Unix) * os_dep.c (old_bus_handler): Define only if SIGBUS (only for UNIX_LIKE or NEED_FIND_LIMIT). --- diff --git a/os_dep.c b/os_dep.c index 02593c35..f042758a 100644 --- a/os_dep.c +++ b/os_dep.c @@ -851,7 +851,10 @@ GC_INNER word GC_page_size = 0; static struct sigaction old_bus_act; # endif # else - static GC_fault_handler_t old_segv_handler, old_bus_handler; + static GC_fault_handler_t old_segv_handler; +# ifdef SIGBUS + static GC_fault_handler_t old_bus_handler; +# endif # endif GC_INNER void GC_set_and_save_fault_handler(GC_fault_handler_t h)