Skip to content

Commit c8ef4f5

Browse files
jsquyrestkordenbrock
authored andcommitted
Fix a variety of compiler warnings
- Remove dead code - Fix shadow variable declarations - Cast %p arguments to (void*) - Make integer comparisons agree in sign - Make a local function static so that it does not require a prior declaration Signed-off-by: Jeff Squyres <jsquyres@cisco.com> (cherry picked from commit 91c4c29)
1 parent 86c2260 commit c8ef4f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ompi/mca/part/persist/part_persist.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Copyright (c) 2019-2021 Sandia National Laboratories. All rights reserved.
1313
* Copyright (c) 2021 University of Alabama at Birmingham. All rights reserved.
1414
* Copyright (c) 2021 Tennessee Technological University. All rights reserved.
15+
* Copyright (c) 2021 Cisco Systems, Inc. All rights reserved
1516
* $COPYRIGHT$
1617
*
1718
* Additional copyrights may follow
@@ -313,8 +314,10 @@ mca_part_persist_progress(void)
313314
OPAL_THREAD_UNLOCK(&ompi_part_persist.lock);
314315
block_entry = opal_atomic_add_fetch_32(&(ompi_part_persist.block_entry), -1);
315316
if(to_delete) {
316-
int err = mca_part_persist_free_req(to_delete);
317-
if(OMPI_SUCCESS != err) return OMPI_ERROR;
317+
err = mca_part_persist_free_req(to_delete);
318+
if (OMPI_SUCCESS != err) {
319+
return OMPI_ERROR;
320+
}
318321
}
319322

320323
return OMPI_SUCCESS;

0 commit comments

Comments
 (0)