From: Simon Marchi Date: Mon, 25 Nov 2019 21:14:34 +0000 (-0500) Subject: tests: make functions static in test_utils_compat_poll.c X-Git-Tag: v2.12.0-rc1~180 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f7f52067bec1aab9a5660075f851a7ccea1d39fe;p=lttng-tools.git tests: make functions static in test_utils_compat_poll.c 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 --- 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