bt_print and bt_exit is enclosed in the conditional

This commit is contained in:
Justin Litchfield 2018-04-04 18:19:31 -05:00 committed by Christian Decker
parent 1a55147870
commit d3d195dd85

View File

@ -84,10 +84,9 @@ void daemon_setup(const char *argv0,
{
err_set_progname(argv0);
#if BACKTRACE_SUPPORTED
bt_print = backtrace_print;
bt_exit = backtrace_exit;
#if BACKTRACE_SUPPORTED
#if DEVELOPER
/* Suppresses backtrace (breaks valgrind) */
if (!getenv("LIGHTNINGD_DEV_NO_BACKTRACE"))