diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-05-11 20:33:33 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-05-11 20:38:44 +0200 |
| commit | c611e096a8b73b82e5643237eb28e93ba25af6ca (patch) | |
| tree | 4f24bcb8a63b0c68439319081943351bcb6756e1 /core | |
| parent | 2751b370cfa2be7ca21620f807ac3e04ce653c28 (diff) | |
| download | vis-c611e096a8b73b82e5643237eb28e93ba25af6ca.tar.gz vis-c611e096a8b73b82e5643237eb28e93ba25af6ca.tar.xz | |
test/core: fix compilation with gcc 10
Newer gcc rejects multiple definitions of global variables.
Fix #21
Diffstat (limited to 'core')
| -rw-r--r-- | core/ccan/tap/tap.c | 2 | ||||
| -rw-r--r-- | core/ccan/tap/tap.h | 2 |
2 files changed, 3 insertions, 1 deletions
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 */ |
