Skip to content

Commit 77690a6

Browse files
James-A-Clarkjsquyres
authored andcommitted
Use scope push/pop for foundFlags local variable
Signed-off-by: James Clark <[email protected]>
1 parent de87952 commit 77690a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/orte_setup_debugger_flags.m4

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ AC_DEFUN([ORTE_SETUP_DEBUGGER_FLAGS],[
7575
# producing a stack when explicit unwind information is unavailable.
7676
# This is implied by -g, but we want to save space and don't need
7777
# full debug symbols.
78+
OPAL_VAR_SCOPE_PUSH([foundFlags])
7879
foundFlags=no
7980
MPIR_UNWIND_CFLAGS=
8081

@@ -91,8 +92,8 @@ AC_DEFUN([ORTE_SETUP_DEBUGGER_FLAGS],[
9192
# Finally fall back to -g if neither of the above were available
9293
if test $foundFlags = no; then
9394
_ORTE_SETUP_DEBUGGER_FLAGS_TRY_CFLAGS([-g],
94-
[MPIR_UNWIND_CFLAGS=-g foundFlags=yes])
95+
[MPIR_UNWIND_CFLAGS=-g])
9596
fi
96-
9797
AC_SUBST(MPIR_UNWIND_CFLAGS)
98+
OPAL_VAR_SCOPE_POP
9899
])

0 commit comments

Comments
 (0)