Skip to content
Snippets Groups Projects
Commit a27b5f6a authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Fix Wextra warning

parent 9c25a2e1
Branches
No related tags found
1 merge request!11Draft: Fast one-sided MPI version
......@@ -155,7 +155,7 @@ void mpiuse_log_restore(const char *filename) {
while (!feof(fd)) {
if (fgets(line, 132, fd) != NULL) {
if (line[0] != '#') {
if (line[0] != '#' && line[0] != '\n') {
sscanf(line, "%zd %zd %zd %d %d %d %s %d %s %d %d %d %zd %zd", &stic,
&etic, &dtic, &step, &rank, &otherrank, type, &itype, subtype,
&isubtype, &activation, &tag, &size, &sum);
......@@ -254,6 +254,6 @@ int mpiuse_nr_ranks(void) { return mpiuse_max_rank + 1; }
*/
struct mpiuse_log_entry *mpiuse_get_log(int ind) {
if (ind < mpiuse_log_count && ind >= 0) return &mpiuse_log[ind];
if (ind < (int)mpiuse_log_count && ind >= 0) return &mpiuse_log[ind];
return NULL;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment