File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -175,12 +175,13 @@ send_frag_constructor(opal_btl_usnic_send_frag_t *frag)
175175static void
176176send_frag_destructor (opal_btl_usnic_send_frag_t * frag )
177177{
178- mca_btl_base_descriptor_t * desc ;
179-
178+ #if OPAL_ENABLE_DEBUG
180179 /* make sure nobody twiddled these values after the constructor */
180+ mca_btl_base_descriptor_t * desc ;
181181 desc = & frag -> sf_base .uf_base ;
182182 assert (desc -> USNIC_SEND_LOCAL == frag -> sf_base .uf_local_seg );
183183 assert (0 == frag -> sf_base .uf_local_seg [0 ].seg_len );
184+ #endif
184185
185186 /* PML may change desc->des_remote to point elsewhere, cannot assert that it
186187 * still points to our embedded segment */
Original file line number Diff line number Diff line change @@ -2125,7 +2125,7 @@ static void init_random_objects(opal_btl_usnic_module_t *module)
21252125
21262126static void init_freelists (opal_btl_usnic_module_t * module )
21272127{
2128- int rc ;
2128+ int rc __opal_attribute_unused__ ;
21292129 uint32_t segsize ;
21302130
21312131 segsize = (module -> local_modex .max_msg_size +
You can’t perform that action at this time.
0 commit comments