Remove compiler warnings.
Этот коммит содержится в:
родитель
a95de6e8ef
Коммит
26fc8533f8
@ -464,9 +464,7 @@ opal_pack_general_function( opal_convertor_t* pConvertor,
|
|||||||
unsigned char *conv_ptr, *iov_ptr;
|
unsigned char *conv_ptr, *iov_ptr;
|
||||||
size_t iov_len_local;
|
size_t iov_len_local;
|
||||||
uint32_t iov_count;
|
uint32_t iov_count;
|
||||||
int type, rc;
|
int type;
|
||||||
const opal_convertor_master_t* master = pConvertor->master;
|
|
||||||
ptrdiff_t advance;
|
|
||||||
|
|
||||||
DO_DEBUG( opal_output( 0, "opal_convertor_general_pack( %p:%p, {%p, %lu}, %d )\n",
|
DO_DEBUG( opal_output( 0, "opal_convertor_general_pack( %p:%p, {%p, %lu}, %d )\n",
|
||||||
(void*)pConvertor, (void*)pConvertor->pBaseBuf,
|
(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;
|
mca_btl_base_endpoint_t* btl_endpoint = frag->endpoint;
|
||||||
int i, num_vecs, dont_copy_data = 0;
|
int i, num_vecs, dont_copy_data = 0;
|
||||||
ssize_t cnt;
|
ssize_t cnt;
|
||||||
struct iovec *iov_ptr;
|
|
||||||
|
|
||||||
repeat:
|
repeat:
|
||||||
num_vecs = frag->iov_cnt;
|
num_vecs = frag->iov_cnt;
|
||||||
iov_ptr = &frag->iov[frag->iov_idx];
|
|
||||||
#if MCA_BTL_TCP_ENDPOINT_CACHE
|
#if MCA_BTL_TCP_ENDPOINT_CACHE
|
||||||
if( 0 != btl_endpoint->endpoint_cache_length ) {
|
if( 0 != btl_endpoint->endpoint_cache_length ) {
|
||||||
size_t 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.
|
* is still some data pending.
|
||||||
*/
|
*/
|
||||||
cnt = length = btl_endpoint->endpoint_cache_length;
|
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 )
|
if( length > frag->iov_ptr[i].iov_len )
|
||||||
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) ) {
|
if( (0 == dont_copy_data) || (length < frag->iov_ptr[i].iov_len) ) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user