Skip to content

Commit 26fc853

Browse files
committed
Remove compiler warnings.
1 parent a95de6e commit 26fc853

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

opal/datatype/opal_datatype_pack.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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,

opal/mca/btl/tcp/btl_tcp_frag.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,9 @@ bool mca_btl_tcp_frag_recv(mca_btl_tcp_frag_t* frag, int sd)
164164
mca_btl_base_endpoint_t* btl_endpoint = frag->endpoint;
165165
int i, num_vecs, dont_copy_data = 0;
166166
ssize_t cnt;
167-
struct iovec *iov_ptr;
168167

169168
repeat:
170169
num_vecs = frag->iov_cnt;
171-
iov_ptr = &frag->iov[frag->iov_idx];
172170
#if MCA_BTL_TCP_ENDPOINT_CACHE
173171
if( 0 != btl_endpoint->endpoint_cache_length ) {
174172
size_t length;
@@ -177,7 +175,7 @@ bool mca_btl_tcp_frag_recv(mca_btl_tcp_frag_t* frag, int sd)
177175
* is still some data pending.
178176
*/
179177
cnt = length = btl_endpoint->endpoint_cache_length;
180-
for( i = 0; i < frag->iov_cnt; i++ ) {
178+
for( i = 0; i < (int)frag->iov_cnt; i++ ) {
181179
if( length > frag->iov_ptr[i].iov_len )
182180
length = frag->iov_ptr[i].iov_len;
183181
if( (0 == dont_copy_data) || (length < frag->iov_ptr[i].iov_len) ) {

0 commit comments

Comments
 (0)