vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 78df12ed0213ec06410e5aad336b0670748ee203 parent 06282e1d55dfde0cf13838a09018566e26adfbdd Author: Marc André Tanner <mat@brain-dump.org> Date: Mon, 11 May 2020 20:33:33 +0200 test/core: fix compilation with gcc 10 Newer gcc rejects multiple definitions of global variables. Fix #21 Diffstat:
| M | core/ccan/tap/tap.c | | | 2 | ++ |
| M | core/ccan/tap/tap.h | | | 2 | +- |
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git 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 @@ -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 */