mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix C90 error.
* configure.ac (check broken_backtrace code): fix decl. position error because of `-Werror=declaration-after-statement`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5fa8b95d5f
commit
3e1f06da5d
1 changed files with 2 additions and 1 deletions
|
@ -2826,6 +2826,8 @@ main(void)
|
|||
{
|
||||
volatile int *a = NULL;
|
||||
stack_t ss;
|
||||
struct sigaction sa;
|
||||
|
||||
ss.ss_sp = malloc(SIGSTKSZ);
|
||||
if (ss.ss_sp == NULL) {
|
||||
fprintf(stderr, "cannot allocate memory for sigaltstack\n");
|
||||
|
@ -2837,7 +2839,6 @@ main(void)
|
|||
fprintf(stderr, "sigaltstack failed\n");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
struct sigaction sa;
|
||||
memset(&sa, 0, sizeof(struct sigaction));
|
||||
sigemptyset(&sa.sa_mask);
|
||||
sa.sa_sigaction = sigsegv;
|
||||
|
|
Loading…
Reference in a new issue