Skip to content

Commit a242857

Browse files
committed
opal/datatype: fix compiler warnings
Remove unused variables and unused label. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 00b20be commit a242857

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

opal/datatype/opal_datatype_pack.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright (c) 2004-2006 The Regents of the University of California.
1212
* All rights reserved.
1313
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
14-
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
14+
* Copyright (c) 2013-2017 Cisco Systems, Inc. All rights reserved
1515
* $COPYRIGHT$
1616
*
1717
* Additional copyrights may follow
@@ -464,9 +464,7 @@ opal_pack_general_function( opal_convertor_t* pConvertor,
464464
unsigned char *conv_ptr, *iov_ptr;
465465
size_t iov_len_local;
466466
uint32_t iov_count;
467-
int type, rc;
468-
const opal_convertor_master_t* master = pConvertor->master;
469-
ptrdiff_t advance;
467+
int type;
470468

471469
DO_DEBUG( opal_output( 0, "opal_convertor_general_pack( %p:%p, {%p, %lu}, %d )\n",
472470
(void*)pConvertor, (void*)pConvertor->pBaseBuf,
@@ -566,7 +564,10 @@ opal_pack_general_function( opal_convertor_t* pConvertor,
566564
PUSH_STACK( pStack, pConvertor->stack_pos, pos_desc, OPAL_DATATYPE_LOOP, count_desc,
567565
pStack->disp + local_disp);
568566
pos_desc++;
567+
#if 0
568+
// This label currently in another if 0'ed out block
569569
update_loop_description: /* update the current state */
570+
#endif
570571
conv_ptr = pConvertor->pBaseBuf + pStack->disp;
571572
UPDATE_INTERNAL_COUNTERS( description, pos_desc, pElem, count_desc );
572573
DDT_DUMP_STACK( pConvertor->pStack, pConvertor->stack_pos, pElem, "advance loop" );

0 commit comments

Comments
 (0)