Commit 4a19b43d authored by Rob Latham's avatar Rob Latham

fix compiler warnings

parent c4e707e0
......@@ -628,7 +628,7 @@ static int ssg_group_serialize(
ssg_member_state_t *member_state, *tmp;
hg_size_t group_buf_size = 0;
void *group_buf;
void *buf_p;
char *buf_p;
*buf = NULL;
*buf_size = 0;
......
......@@ -1356,7 +1356,8 @@ void ssg_group_id_serialize(
i = 1;
/* serialize self string first ... */
addr_str_size += strlen(g_desc->g_data.g->mid_state->self_addr_str) + 1;
/* fall through to view serialization */
/* deliberately falls through to view serialization. Extra comment for gcc Wimplicit-fallthrough */
// falls through
case SSG_OWNER_IS_OBSERVER:
if (!view)
{
......@@ -1411,7 +1412,8 @@ void ssg_group_id_serialize(
i = 1;
strcpy(p, g_desc->g_data.g->mid_state->self_addr_str);
p += strlen(g_desc->g_data.g->mid_state->self_addr_str) + 1;
/* fall through to view serialization */
/* fall-through to view serialization. Next line for gcc Wimplicit-fallthrough */
// falls through
case SSG_OWNER_IS_OBSERVER:
HASH_ITER(hh, view->member_map, state, tmp)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment