mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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
@@ -35,7 +35,7 @@ static size_t in_timer;
|
||||
|
||||
bool deprecated_apis;
|
||||
|
||||
const struct chainparams *chainparams;
|
||||
extern const struct chainparams *chainparams;
|
||||
|
||||
struct plugin_timer {
|
||||
struct timer timer;
|
||||
|
||||
Reference in New Issue
Block a user