Skip to content

Commit

Permalink
teams: warn if masked config is non-null in "get"
Browse files Browse the repository at this point in the history
  • Loading branch information
davidozog committed May 1, 2024
1 parent e9e7f59 commit 6198b74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/teams_c.c4
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ shmem_team_get_config(shmem_team_t team, long config_mask, shmem_team_config_t *
return -1;
}
memcpy(config, &myteam->config, sizeof(shmem_team_config_t));
} else if (config != NULL) {
RAISE_WARN_MSG("%s %s\n", "shmem_team_get_config encountered an unexpected",
"non-NULL config structure passed with a config_mask of 0.");
}

return 0;
Expand Down

0 comments on commit 6198b74

Please sign in to comment.