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:
Wladimir J. van der Laan
2020-01-31 20:59:00 +00:00
committed by Rusty Russell
parent fd76b8bfba
commit e4c6fd89b7
9 changed files with 9 additions and 9 deletions

View File

@@ -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;