usnic: misc compiler warnings fixes
Этот коммит содержится в:
родитель
ba429dc890
Коммит
cd87c8ad41
@ -175,12 +175,13 @@ send_frag_constructor(opal_btl_usnic_send_frag_t *frag)
|
|||||||
static void
|
static void
|
||||||
send_frag_destructor(opal_btl_usnic_send_frag_t *frag)
|
send_frag_destructor(opal_btl_usnic_send_frag_t *frag)
|
||||||
{
|
{
|
||||||
mca_btl_base_descriptor_t *desc;
|
#if OPAL_ENABLE_DEBUG
|
||||||
|
|
||||||
/* make sure nobody twiddled these values after the constructor */
|
/* make sure nobody twiddled these values after the constructor */
|
||||||
|
mca_btl_base_descriptor_t *desc;
|
||||||
desc = &frag->sf_base.uf_base;
|
desc = &frag->sf_base.uf_base;
|
||||||
assert(desc->USNIC_SEND_LOCAL == frag->sf_base.uf_local_seg);
|
assert(desc->USNIC_SEND_LOCAL == frag->sf_base.uf_local_seg);
|
||||||
assert(0 == frag->sf_base.uf_local_seg[0].seg_len);
|
assert(0 == frag->sf_base.uf_local_seg[0].seg_len);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* PML may change desc->des_remote to point elsewhere, cannot assert that it
|
/* PML may change desc->des_remote to point elsewhere, cannot assert that it
|
||||||
* still points to our embedded segment */
|
* still points to our embedded segment */
|
||||||
|
@ -2125,7 +2125,7 @@ static void init_random_objects(opal_btl_usnic_module_t *module)
|
|||||||
|
|
||||||
static void init_freelists(opal_btl_usnic_module_t *module)
|
static void init_freelists(opal_btl_usnic_module_t *module)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc __opal_attribute_unused__;
|
||||||
uint32_t segsize;
|
uint32_t segsize;
|
||||||
|
|
||||||
segsize = (module->local_modex.max_msg_size +
|
segsize = (module->local_modex.max_msg_size +
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user