mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
Add missing extern qualifiers for gcc 10
GCC 10 defaults to `-fno-common`. no longer automatically sharing global variable definitions, which makes it important to define them in only one place (otherwise there will be duplicate definition errors). Add `extern` qualifiers where (I think) is the best place for them.
This commit is contained in:
committed by
Rusty Russell
parent
fd76b8bfba
commit
e4c6fd89b7
@@ -18,8 +18,6 @@
|
||||
#include <unistd.h>
|
||||
#include <wally_core.h>
|
||||
|
||||
struct backtrace_state *backtrace_state;
|
||||
|
||||
#if BACKTRACE_SUPPORTED
|
||||
static void (*bt_print)(const char *fmt, ...) PRINTF_FMT(1,2);
|
||||
static void (*bt_exit)(void);
|
||||
|
||||
Reference in New Issue
Block a user