Skip to content

Commit 60fa7d5

Browse files
committed
Fix compile error
signal.c:69:10: error: variably modified ‘signm’ at file scope char signm[LONGEST_SIGNAME + 1]; ^ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent a0e141b commit 60fa7d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ruby_atomic_compare_and_swap(rb_atomic_t *ptr, rb_atomic_t cmp,
6464

6565
#define FOREACH_SIGNAL(sig, offset) \
6666
for (sig = siglist + (offset); sig < siglist + numberof(siglist); ++sig)
67-
static const int LONGEST_SIGNAME = 7; /* MIGRATE and RETRACT */
67+
enum { LONGEST_SIGNAME = 7 }; /* MIGRATE and RETRACT */
6868
static const struct signals {
6969
char signm[LONGEST_SIGNAME + 1];
7070
int signo;

0 commit comments

Comments
 (0)