Skip to content

Commit ca99004

Browse files
committed
Fix unused variable warnings in external PMIx case
Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent 1aa8cb9 commit ca99004

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ompi/runtime/ompi_mpi_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,9 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided,
402402
ompi_proc_t** procs;
403403
size_t nprocs;
404404
char *error = NULL;
405+
#if OPAL_USING_INTERNAL_PMIX
405406
char *evar;
407+
#endif
406408
volatile bool active;
407409
bool background_fence = false;
408410
pmix_info_t info[2];

ompi/tools/mpirun/main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727

2828
int main(int argc, char *argv[])
2929
{
30-
char *evar, *pvar;
30+
char *evar;
31+
#if OPAL_USING_INTERNAL_PMIX || OMPI_USING_INTERNAL_PRRTE
32+
char *pvar;
33+
#endif
3134
char **pargs = NULL;
3235
char *pfx = NULL;
3336
int m, param_len;

0 commit comments

Comments
 (0)