Skip to content

Commit cd49049

Browse files
authored
Merge pull request #8320 from rhc54/topic/warn
Silence warnings
2 parents c8e1847 + 6070522 commit cd49049

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ompi/mca/pml/ob1/pml_ob1_recvfrag.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ void mca_pml_ob1_recv_frag_callback_rndv (mca_btl_base_module_t *btl,
521521
if( OPAL_UNLIKELY(segments->seg_len < sizeof(mca_pml_ob1_common_hdr_t)) ) {
522522
return;
523523
}
524-
ob1_hdr_ntoh(hdr, MCA_PML_OB1_HDR_TYPE_RNDV);
524+
ob1_hdr_ntoh((mca_pml_ob1_hdr_t*)hdr, MCA_PML_OB1_HDR_TYPE_RNDV);
525525
mca_pml_ob1_recv_frag_match(btl, &hdr->hdr_match, segments,
526526
descriptor->des_segment_count, MCA_PML_OB1_HDR_TYPE_RNDV);
527527
}
@@ -535,7 +535,7 @@ void mca_pml_ob1_recv_frag_callback_rget (mca_btl_base_module_t *btl,
535535
if( OPAL_UNLIKELY(segments->seg_len < sizeof(mca_pml_ob1_common_hdr_t)) ) {
536536
return;
537537
}
538-
ob1_hdr_ntoh(hdr, MCA_PML_OB1_HDR_TYPE_RGET);
538+
ob1_hdr_ntoh((mca_pml_ob1_hdr_t*)hdr, MCA_PML_OB1_HDR_TYPE_RGET);
539539
mca_pml_ob1_recv_frag_match(btl, &hdr->hdr_match, segments,
540540
descriptor->des_segment_count, MCA_PML_OB1_HDR_TYPE_RGET);
541541
}
@@ -552,7 +552,7 @@ void mca_pml_ob1_recv_frag_callback_ack (mca_btl_base_module_t *btl,
552552
return;
553553
}
554554

555-
ob1_hdr_ntoh(hdr, MCA_PML_OB1_HDR_TYPE_ACK);
555+
ob1_hdr_ntoh((mca_pml_ob1_hdr_t*)hdr, MCA_PML_OB1_HDR_TYPE_ACK);
556556
sendreq = (mca_pml_ob1_send_request_t *) hdr->hdr_ack.hdr_src_req.pval;
557557
sendreq->req_recv = hdr->hdr_ack.hdr_dst_req;
558558

@@ -614,7 +614,7 @@ void mca_pml_ob1_recv_frag_callback_frag (mca_btl_base_module_t *btl,
614614
return;
615615
}
616616

617-
ob1_hdr_ntoh(hdr, MCA_PML_OB1_HDR_TYPE_FRAG);
617+
ob1_hdr_ntoh((mca_pml_ob1_hdr_t*)hdr, MCA_PML_OB1_HDR_TYPE_FRAG);
618618
recvreq = (mca_pml_ob1_recv_request_t*)hdr->hdr_frag.hdr_dst_req.pval;
619619
#if OPAL_CUDA_SUPPORT /* CUDA_ASYNC_RECV */
620620
/* If data is destined for GPU buffer and convertor was set up for asynchronous
@@ -648,7 +648,7 @@ void mca_pml_ob1_recv_frag_callback_put (mca_btl_base_module_t *btl,
648648
return;
649649
}
650650

651-
ob1_hdr_ntoh (hdr, MCA_PML_OB1_HDR_TYPE_PUT);
651+
ob1_hdr_ntoh ((mca_pml_ob1_hdr_t*)hdr, MCA_PML_OB1_HDR_TYPE_PUT);
652652
sendreq = (mca_pml_ob1_send_request_t *) hdr->hdr_rdma.hdr_req.pval;
653653
mca_pml_ob1_send_request_put (sendreq, btl, &hdr->hdr_rdma);
654654
}

0 commit comments

Comments
 (0)