1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 07:03:33 +00:00

sigsegv: Avoid a gcc warning "declaration of 'sig' shadows a parameter".

Reported by Dmitry V. Levin <ldv@altlinux.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-06/msg00018.html>.

* lib/sigsegv.c (sigsegv_handler): Use a different local variable name
than 'sig'.
This commit is contained in:
Bruno Haible
2021-06-07 04:24:50 +02:00
parent 11d8c3e2a2
commit e2bcd2e4d9
2 changed files with 10 additions and 2 deletions

View File

@@ -1056,7 +1056,7 @@ sigsegv_handler (SIGSEGV_FAULT_HANDLER_ARGLIST)
/* Handler declined responsibility for real. */
/* Remove ourselves and dump core. */
SIGSEGV_FOR_ALL_SIGNALS (sig, signal (sig, SIG_DFL);)
SIGSEGV_FOR_ALL_SIGNALS (signo, signal (signo, SIG_DFL);)
}
# if HAVE_STACK_OVERFLOW_RECOVERY
@@ -1151,7 +1151,7 @@ sigsegv_handler (int sig)
}
/* Remove ourselves and dump core. */
SIGSEGV_FOR_ALL_SIGNALS (sig, signal (sig, SIG_DFL);)
SIGSEGV_FOR_ALL_SIGNALS (signo, signal (signo, SIG_DFL);)
}
#endif