Skip to content
Snippets Groups Projects
Commit bea426d6 authored by Jammer, Tim's avatar Jammer, Tim
Browse files

fix compiler warning in assign to request array

parent 1e2e79d5
Branches
No related tags found
1 merge request!20Parsing and tools updates
......@@ -183,6 +183,8 @@ class InvalidPersistentRequestUsage(ErrorGenerator):
tm.set_description("InvalidParam-Request-mpi_startall", "Starting an request twice")
prev_req = start_call.get_arg("request")
if prev_req.startswith("&"):
prev_req = prev_req[1:] # remove leading &
tm.insert_instruction(Instruction("MPI_Request req_array[2];", rank=start_call.get_rank_executing()),
before_instruction=start_call)
......@@ -205,6 +207,8 @@ class InvalidPersistentRequestUsage(ErrorGenerator):
tm.set_description("InvalidParam-Request-mpi_startall", "array contains NULL")
prev_req = start_call.get_arg("request")
if prev_req.startswith("&"):
prev_req = prev_req[1:] # remove leading &
tm.insert_instruction(Instruction("MPI_Request req_array[2];", rank=start_call.get_rank_executing()),
before_instruction=start_call)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment