Use NULL instead of nullptr, add warning

This commit is contained in:
Stan Gerald Moore
2024-05-01 11:49:16 -06:00
parent 85da84b92a
commit 8788b81ab1

View File

@ -714,7 +714,8 @@ int MPI_Comm_get_attr(MPI_Comm comm, int comm_keyval, void **attribute_val_ptr,
int *flag)
{
if (comm_keyval != MPI_TAG_UB) {
attribute_val_ptr = nullptr;
printf("MPI Stub WARNING: Unsupported keyword in MPI_Comm_get_attr\n");
*attribute_val_ptr = NULL;
*flag = 0;
return MPI_ERR_ARG;
}