From 49ee68443d41ffe1ab72c964104da980a2eb4367 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Tue, 30 Apr 2019 11:50:46 +0200 Subject: build: add -Wall and -fno-common, fix reported issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type: refactor Change-Id: I8489ccd54411c2aa9355439c5641dc31012c64a2 Signed-off-by: Benoît Ganne Signed-off-by: Damjan Marion --- src/tests/vnet/session/udp_echo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/tests') diff --git a/src/tests/vnet/session/udp_echo.c b/src/tests/vnet/session/udp_echo.c index 3a70d3964c6..c9992befe98 100644 --- a/src/tests/vnet/session/udp_echo.c +++ b/src/tests/vnet/session/udp_echo.c @@ -419,7 +419,7 @@ wait_for_state_change (udp_echo_main_t * utm, connection_state_t state) u64 server_bytes_received, server_bytes_sent; -static void * +__clib_unused static void * cut_through_thread_fn (void *arg) { app_session_t *s; @@ -716,7 +716,7 @@ send_test_chunk (udp_echo_main_t * utm, app_session_t * s, u32 bytes) u64 test_buf_len, bytes_this_chunk, test_buf_offset; u8 *test_data = utm->connect_test_data; - u32 bytes_to_snd, enq_space, min_chunk; + u32 enq_space; int written; test_buf_len = vec_len (test_data); @@ -807,7 +807,6 @@ static void client_test (udp_echo_main_t * utm) { f64 start_time, timeout = 100.0; - app_session_t *session; svm_msg_q_msg_t msg; session_event_t *e; @@ -1028,7 +1027,6 @@ server_handle_event_queue (udp_echo_main_t * utm) session_event_t *e; svm_msg_q_msg_t msg; svm_msg_q_t *mq = utm->our_event_queue; - int i; while (utm->state != STATE_READY) sleep (5); -- cgit 1.2.3-korg