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>
+
+ 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.
/* 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
}
/* Remove ourselves and dump core. */
- SIGSEGV_FOR_ALL_SIGNALS (sig, signal (sig, SIG_DFL);)
+ SIGSEGV_FOR_ALL_SIGNALS (signo, signal (signo, SIG_DFL);)
}
#endif