ruby-changes:54006
From: ko1 <ko1@a...>
Date: Thu, 6 Dec 2018 01:15:15 +0900 (JST)
Subject: [ruby-changes:54006] ko1:r66226 (trunk): fix C90 error.
ko1 2018-12-06 01:15:09 +0900 (Thu, 06 Dec 2018) New Revision: 66226 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66226 Log: fix C90 error. * configure.ac (check broken_backtrace code): fix decl. position error because of `-Werror=declaration-after-statement`. Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 66225) +++ configure.ac (revision 66226) @@ -2826,6 +2826,8 @@ main(void) https://github.com/ruby/ruby/blob/trunk/configure.ac#L2826 { 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) https://github.com/ruby/ruby/blob/trunk/configure.ac#L2839 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/