diff options
author | Damjan Marion <damarion@cisco.com> | 2018-03-27 21:07:58 +0200 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2018-03-27 20:15:54 +0000 |
commit | 2d207bcde275c81edf347caeed679f6f82cd82d0 (patch) | |
tree | 41fae79f3b0815fbb4c625df236d5b70b01a0e4f /src | |
parent | be3f4d5a30d8b2acbcbe88f66b066597326aa42d (diff) |
vlib: gcc-7 -O3 uninitialized values
Change-Id: I59b4142daab439d60a1ebd48b2c1366df0160288
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vlib/unix/mc_socket.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vlib/unix/mc_socket.c b/src/vlib/unix/mc_socket.c index 3f1cd99d382..1da19a5e773 100644 --- a/src/vlib/unix/mc_socket.c +++ b/src/vlib/unix/mc_socket.c @@ -250,7 +250,7 @@ mastership_socket_read_ready (clib_file_t * uf) mc_multicast_socket_t *ms = &msm->multicast_sockets[MC_TRANSPORT_MASTERSHIP]; clib_error_t *error; - u32 bi; + u32 bi = 0; error = recvmsg_helper (msm, ms->socket, /* rx_addr */ 0, &bi, /* drop_message */ 0); @@ -273,7 +273,7 @@ to_relay_socket_read_ready (clib_file_t * uf) mc_multicast_socket_t *ms_from_relay = &msm->multicast_sockets[MC_TRANSPORT_USER_REQUEST_FROM_RELAY]; clib_error_t *error; - u32 bi; + u32 bi = 0; u32 is_master = mcm->relay_state == MC_RELAY_STATE_MASTER; /* Not the ordering master? Turf the msg */ @@ -304,7 +304,7 @@ from_relay_socket_read_ready (clib_file_t * uf) mc_multicast_socket_t *ms = &msm->multicast_sockets[MC_TRANSPORT_USER_REQUEST_FROM_RELAY]; clib_error_t *error; - u32 bi; + u32 bi = 0; error = recvmsg_helper (msm, ms->socket, /* rx_addr */ 0, &bi, /* drop_message */ 0); @@ -324,7 +324,7 @@ join_socket_read_ready (clib_file_t * uf) vlib_main_t *vm = mcm->vlib_main; mc_multicast_socket_t *ms = &msm->multicast_sockets[MC_TRANSPORT_JOIN]; clib_error_t *error; - u32 bi; + u32 bi = 0; error = recvmsg_helper (msm, ms->socket, /* rx_addr */ 0, &bi, /* drop_message */ 0); @@ -359,7 +359,7 @@ ack_socket_read_ready (clib_file_t * uf) mc_socket_main_t *msm = (mc_socket_main_t *) uf->private_data; mc_main_t *mcm = &msm->mc_main; clib_error_t *error; - u32 bi; + u32 bi = 0; error = recvmsg_helper (msm, msm->ack_socket, /* rx_addr */ 0, &bi, /* drop_message */ 0); |