From: Guus Sliepen Date: Mon, 3 Feb 2020 15:10:26 +0000 (+0100) Subject: Fix compiling with GCC 10. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=fad8bcd322f0413cc1b2c61cc18a37d5c980afeb;p=meshlink Fix compiling with GCC 10. --- diff --git a/test/blackbox/common/containers.c b/test/blackbox/common/containers.c index c11ca430..4f3f881a 100644 --- a/test/blackbox/common/containers.c +++ b/test/blackbox/common/containers.c @@ -30,7 +30,7 @@ #include "common_handlers.h" char *lxc_path = NULL; -char *choose_arch; +extern char *choose_arch; static char container_ips[10][100]; /* Return the handle to an existing container after finding it by container name */ diff --git a/test/blackbox/run_blackbox_tests/test_cases_rec_cb.c b/test/blackbox/run_blackbox_tests/test_cases_rec_cb.c index 044234b3..e659ead8 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_rec_cb.c +++ b/test/blackbox/run_blackbox_tests/test_cases_rec_cb.c @@ -64,7 +64,7 @@ static black_box_state_t test_case_set_rec_cb_03_state = { static bool received; /* mutex for the common variable */ -pthread_mutex_t lock; +static pthread_mutex_t lock; /* receive callback function */ static void rec_cb(meshlink_handle_t *mesh, meshlink_node_t *source, const void *data, size_t len) {