@@ -547,7 +547,6 @@ int32_t opal_unpack_general_function(opal_convertor_t *pConvertor, struct iovec
547547 dt_stack_t * pStack ; /* pointer to the position on the stack */
548548 uint32_t pos_desc ; /* actual position in the description of the derived datatype */
549549 size_t count_desc ; /* the number of items already done in the actual pos_desc */
550- uint16_t type = OPAL_DATATYPE_MAX_PREDEFINED ; /* type at current position */
551550 size_t total_unpacked = 0 ; /* total size unpacked this time */
552551 dt_elem_desc_t * description ;
553552 dt_elem_desc_t * pElem ;
@@ -588,15 +587,14 @@ int32_t opal_unpack_general_function(opal_convertor_t *pConvertor, struct iovec
588587 while (1 ) {
589588 while (pElem -> elem .common .flags & OPAL_DATATYPE_FLAG_DATA ) {
590589 /* now here we have a basic datatype */
591- type = description [pos_desc ].elem .common .type ;
592590 OPAL_DATATYPE_SAFEGUARD_POINTER (conv_ptr + pElem -> elem .disp , pData -> size ,
593591 pConvertor -> pBaseBuf , pData , pConvertor -> count );
594592 DO_DEBUG (opal_output (0 ,
595593 "unpack (%p, %ld) -> (%p:%ld, %" PRIsize_t ", %ld) type %s\n" ,
596594 (void * ) iov_ptr , iov_len_local , (void * ) pConvertor -> pBaseBuf ,
597595 conv_ptr + pElem -> elem .disp - pConvertor -> pBaseBuf , count_desc ,
598596 description [pos_desc ].elem .extent ,
599- opal_datatype_basicDatatypes [type ]-> name ););
597+ opal_datatype_basicDatatypes [description [ pos_desc ]. elem . common . type ]-> name ););
600598 unpack_predefined_heterogeneous (pConvertor , pElem , & count_desc , & conv_ptr , & iov_ptr ,
601599 & iov_len_local );
602600 if (0 == count_desc ) { /* completed */
0 commit comments