File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6262
6363#ifdef HAVE_LIBBACKTRACE
6464#include < backtrace.h>
65- #else
66- struct backtrace_state {};
6765#endif
6866
6967#include < algorithm> // for max
@@ -195,8 +193,6 @@ void *mainloop_udata;
195193extern " C" int _fltused = 0 ;
196194#endif
197195
198- static struct backtrace_state *bt;
199-
200196struct init_data {
201197 bool com_initialized = false ;
202198 list <void *> opened_libs;
@@ -437,6 +433,8 @@ static void echeck_unexpected_exit(void ) {
437433}
438434
439435#ifdef HAVE_LIBBACKTRACE
436+ static struct backtrace_state *bt;
437+
440438static void
441439libbt_error_callback (void *data, const char *msg, int errnum)
442440{
@@ -1370,6 +1368,8 @@ print_stacktrace_glibc()
13701368 libbt_error_callback, &fd);
13711369 }
13721370 st_glibc_flush_output (fd, last_pos);
1371+ #else
1372+ (void ) last_pos;
13731373#endif
13741374
13751375 if (fd != STDERR_FILENO) {
You can’t perform that action at this time.
0 commit comments