From f7f52067bec1aab9a5660075f851a7ccea1d39fe Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 25 Nov 2019 16:14:34 -0500 Subject: [PATCH] tests: make functions static in test_utils_compat_poll.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: CC test_utils_compat_poll.o /home/smarchi/src/lttng-tools/tests/unit/test_utils_compat_poll.c:74:6: error: no previous declaration for ‘test_alloc’ [-Werror=missing-declarations] void test_alloc(void) ^~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_utils_compat_poll.c:95:6: error: no previous declaration for ‘test_add_del’ [-Werror=missing-declarations] void test_add_del(void) ^~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_utils_compat_poll.c:133:6: error: no previous declaration for ‘test_mod_wait’ [-Werror=missing-declarations] void test_mod_wait(void) ^~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_utils_compat_poll.c:189:6: error: no previous declaration for ‘test_func_def’ [-Werror=missing-declarations] void test_func_def(void) ^~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I1feeed8ee3f76783e22ffedd5292a06deee3e233 Signed-off-by: Jérémie Galarneau --- tests/unit/test_utils_compat_poll.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_utils_compat_poll.c b/tests/unit/test_utils_compat_poll.c index b0bd623d1..0cb692abc 100644 --- a/tests/unit/test_utils_compat_poll.c +++ b/tests/unit/test_utils_compat_poll.c @@ -71,7 +71,7 @@ void test_epoll_compat(void) } #endif -void test_alloc(void) +static void test_alloc(void) { struct lttng_poll_event poll_events; @@ -92,7 +92,7 @@ void test_alloc(void) } /* Tests stuff related to what would be handled with epoll_ctl. */ -void test_add_del(void) +static void test_add_del(void) { struct lttng_poll_event poll_events; @@ -130,7 +130,7 @@ void test_add_del(void) lttng_poll_clean(&poll_events); } -void test_mod_wait(void) +static void test_mod_wait(void) { struct lttng_poll_event poll_events; struct lttng_poll_event cpoll_events; @@ -186,7 +186,7 @@ void test_mod_wait(void) } } -void test_func_def(void) +static void test_func_def(void) { #ifdef LTTNG_POLL_GETFD #define PASS_GETFD 1 -- 2.34.1