Skip to content

Commit d430232

Browse files
committed
mpirun: squelch a compiler warning
Only declare a variable for the case that it is actually used. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent 31d719d commit d430232

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/tools/mpirun/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
static char *find_prterun(void)
3333
{
3434
char *filename = NULL;
35+
#if !OMPI_USING_INTERNAL_PRRTE
3536
char *prrte_prefix = NULL;
37+
#endif
3638

3739
/* 1) Did the user tell us exactly where to find prterun? */
3840
filename = getenv("OMPI_PRTERUN");
@@ -144,7 +146,7 @@ int main(int argc, char *argv[])
144146
* Copyright (c) 2004-2005 The Regents of the University of California.
145147
* All rights reserved.
146148
* Copyright (c) 2017-2020 Intel, Inc. All rights reserved.
147-
* Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
149+
* Copyright (c) 2020-2022 Cisco Systems, Inc. All rights reserved
148150
* Copyright (c) 2021 Nanook Consulting. All rights reserved.
149151
* Copyright (c) 2022 Amazon.com, Inc. or its affiliates. All Rights reserved.
150152
* $COPYRIGHT$

0 commit comments

Comments
 (0)