aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-04-30 11:50:46 +0200
committerDamjan Marion <dmarion@me.com>2019-06-07 11:21:59 +0000
commit49ee68443d41ffe1ab72c964104da980a2eb4367 (patch)
treef87d2096fbd19c629390548c7b1d6351e3479851 /src/tests
parent4168c4d914c36f76c45cd8c6dde207b9f1c688e2 (diff)
build: add -Wall and -fno-common, fix reported issues
Type: refactor Change-Id: I8489ccd54411c2aa9355439c5641dc31012c64a2 Signed-off-by: Benoît Ganne <bganne@cisco.com> Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/vnet/session/udp_echo.c6
1 files changed, 2 insertions, 4 deletions
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);