tests: make functions static in test_utils_compat_poll.c
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 25 Nov 2019 21:14:34 +0000 (16:14 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 9 Dec 2019 21:24:06 +0000 (16:24 -0500)
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 <simon.marchi@efficios.com>
Change-Id: I1feeed8ee3f76783e22ffedd5292a06deee3e233
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_utils_compat_poll.c

index b0bd623d13053c11084455f6db74980bab40cf71..0cb692abccb5d0186115dcabd1a09d12accb4b43 100644 (file)
@@ -71,7 +71,7 @@ void test_epoll_compat(void)
 }
 #endif
 
 }
 #endif
 
-void test_alloc(void)
+static void test_alloc(void)
 {
        struct lttng_poll_event poll_events;
 
 {
        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. */
 }
 
 /* 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;
 
 {
        struct lttng_poll_event poll_events;
 
@@ -130,7 +130,7 @@ void test_add_del(void)
        lttng_poll_clean(&poll_events);
 }
 
        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;
 {
        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
 {
 #ifdef LTTNG_POLL_GETFD
 #define PASS_GETFD 1
This page took 0.027167 seconds and 5 git commands to generate.