mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-05-13 15:13:36 +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:
@@ -1,3 +1,11 @@
|
||||
2021-06-06 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
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'.
|
||||
|
||||
2021-06-06 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
scratch_buffer: Avoid conflict with prepr. macros owned by the system.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user