From fad8bcd322f0413cc1b2c61cc18a37d5c980afeb Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 3 Feb 2020 16:10:26 +0100 Subject: [PATCH] Fix compiling with GCC 10. --- test/blackbox/common/containers.c | 2 +- test/blackbox/run_blackbox_tests/test_cases_rec_cb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5