From b82abf6beffeff0bd535588ebe4dccf49f158705 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 1 Jul 2013 11:40:42 +0000 Subject: [PATCH] Silence a compiler warning. This commit was SVN r28686. --- ompi/mca/btl/self/btl_self.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ompi/mca/btl/self/btl_self.c b/ompi/mca/btl/self/btl_self.c index 6e80d7b048..7ee88af7a3 100644 --- a/ompi/mca/btl/self/btl_self.c +++ b/ompi/mca/btl/self/btl_self.c @@ -127,6 +127,7 @@ mca_btl_base_descriptor_t* mca_btl_self_alloc( { mca_btl_self_frag_t* frag = NULL; int rc; + if(size <= mca_btl_self.btl_eager_limit) { MCA_BTL_SELF_FRAG_ALLOC_EAGER(frag,rc); } else if (size <= btl->btl_max_send_size) { @@ -140,6 +141,7 @@ mca_btl_base_descriptor_t* mca_btl_self_alloc( frag->base.des_flags = flags; frag->base.des_src = &(frag->segment); frag->base.des_src_cnt = 1; + (void)rc; /* unused but needed by a macro */ return (mca_btl_base_descriptor_t*)frag; } @@ -271,6 +273,7 @@ mca_btl_self_prepare_dst( struct mca_btl_base_module_t* btl, frag->base.des_dst = &frag->segment; frag->base.des_dst_cnt = 1; frag->base.des_flags = flags; + (void)rc; /* unused but needed by a macro */ return &frag->base; }