Remove compiler warnings.
This commit is contained in:
parent
a95de6e8ef
commit
26fc8533f8
@ -464,9 +464,7 @@ opal_pack_general_function( opal_convertor_t* pConvertor,
|
||||
unsigned char *conv_ptr, *iov_ptr;
|
||||
size_t iov_len_local;
|
||||
uint32_t iov_count;
|
||||
int type, rc;
|
||||
const opal_convertor_master_t* master = pConvertor->master;
|
||||
ptrdiff_t advance;
|
||||
int type;
|
||||
|
||||
DO_DEBUG( opal_output( 0, "opal_convertor_general_pack( %p:%p, {%p, %lu}, %d )\n",
|
||||
(void*)pConvertor, (void*)pConvertor->pBaseBuf,
|
||||
|
@ -164,11 +164,9 @@ bool mca_btl_tcp_frag_recv(mca_btl_tcp_frag_t* frag, int sd)
|
||||
mca_btl_base_endpoint_t* btl_endpoint = frag->endpoint;
|
||||
int i, num_vecs, dont_copy_data = 0;
|
||||
ssize_t cnt;
|
||||
struct iovec *iov_ptr;
|
||||
|
||||
repeat:
|
||||
num_vecs = frag->iov_cnt;
|
||||
iov_ptr = &frag->iov[frag->iov_idx];
|
||||
#if MCA_BTL_TCP_ENDPOINT_CACHE
|
||||
if( 0 != btl_endpoint->endpoint_cache_length ) {
|
||||
size_t length;
|
||||
@ -177,7 +175,7 @@ bool mca_btl_tcp_frag_recv(mca_btl_tcp_frag_t* frag, int sd)
|
||||
* is still some data pending.
|
||||
*/
|
||||
cnt = length = btl_endpoint->endpoint_cache_length;
|
||||
for( i = 0; i < frag->iov_cnt; i++ ) {
|
||||
for( i = 0; i < (int)frag->iov_cnt; i++ ) {
|
||||
if( length > frag->iov_ptr[i].iov_len )
|
||||
length = frag->iov_ptr[i].iov_len;
|
||||
if( (0 == dont_copy_data) || (length < frag->iov_ptr[i].iov_len) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user