From c611e096a8b73b82e5643237eb28e93ba25af6ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 11 May 2020 20:33:33 +0200 Subject: test/core: fix compilation with gcc 10 Newer gcc rejects multiple definitions of global variables. Fix #21 --- core/ccan/tap/tap.c | 2 ++ core/ccan/tap/tap.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/ccan/tap/tap.c b/core/ccan/tap/tap.c index bf8a276..2c465ab 100644 --- a/core/ccan/tap/tap.c +++ b/core/ccan/tap/tap.c @@ -32,6 +32,8 @@ #include "tap.h" +void (*tap_fail_callback)(void) = NULL; + static int no_plan = 0; static int skip_all = 0; static int have_plan = 0; diff --git a/core/ccan/tap/tap.h b/core/ccan/tap/tap.h index 5b21ff7..22c245d 100644 --- a/core/ccan/tap/tap.h +++ b/core/ccan/tap/tap.h @@ -246,6 +246,6 @@ void plan_skip_all(const char *reason); * * This can be used to ease debugging, or exit on the first failure. */ -void (*tap_fail_callback)(void); +extern void (*tap_fail_callback)(void); #endif /* CCAN_TAP_H */ -- cgit v1.2.3