Commit b6354c77 authored by Thomas Leibovici's avatar Thomas Leibovici
Browse files

Fix gcc8 warning 'suggest parentheses around assignment used as truth value'



Change-Id: Idb0735515561fa1e542afff8c516ab1ea503bfb2
Signed-off-by: default avatarThomas Leibovici <thomas.leibovici@cea.fr>
Reviewed-on: https://cws-fleury.labs.ocre.cea.fr/gerrit/6725


Reviewed-by: Linter
Reviewed-by: default avatarPatrice LUCAS <patrice.lucas@cea.fr>
Reviewed-by: default avatarSebastien Gougeaud <sebastien.gougeaud@cea.fr>
Tested-by: default avatarJenkins s8open_nr <s8open_nr@ccc.ocre.cea.fr>
parent 742f9d72
......@@ -281,7 +281,8 @@ static int test_sendrecv_multiple(void *arg)
// sending from clients
for (i = 0; i < TOTAL; ++i) {
send_data_client[i] = pho_comm_data_init(ci_client + i % NCLIENT);
assert(send_data_client[i].buf.buff = malloc(sizeof(i)));
send_data_client[i].buf.buff = malloc(sizeof(i));
assert(send_data_client[i].buf.buff != NULL);
memcpy(send_data_client[i].buf.buff, &i, 4);
send_data_client[i].buf.size = sizeof(i);
assert(!pho_comm_send(send_data_client + i));
......@@ -289,7 +290,8 @@ static int test_sendrecv_multiple(void *arg)
// server side
assert(!pho_comm_recv(&ci_server, &data, &nb_data));
assert(send_data_server.buf.buff = malloc(sizeof(i)));
send_data_server.buf.buff = malloc(sizeof(i));
assert(send_data_server.buf.buff != NULL);
send_data_server.buf.size = sizeof(i);
while (cnt) {
for (i = 0; i < nb_data; ++i) {
......
Supports Markdown
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