Skip to content
Snippets Groups Projects
Commit 9022c569 authored by Felip Moll's avatar Felip Moll Committed by Tim Wickberg
Browse files

GCC 7.2.1 Warnings - cannot increment boolean

GCC is complaining when incrementing a boolean variable, it should
be assigned a value of true or false, and not incremented with ++.

Bug 4212.
parent 5d95f0a2
No related branches found
No related tags found
No related merge requests found
......@@ -438,7 +438,7 @@ int pmixp_coll_contrib_node(pmixp_coll_t *coll, char *nodename, Buf buf)
set_buf_offset(coll->buf, get_buf_offset(coll->buf) + size);
/* increase number of individual contributions */
coll->ch_contribs[nodeid]++;
coll->ch_contribs[nodeid] = true;
/* increase number of total contributions */
coll->contrib_cntr++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment