diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:54 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:54 +0000 |
commit | 1f76918a33c1ca0e563910940f292303016f34fe (patch) | |
tree | 51a0c09acea1c4e52090facc58c968357c08e52d /regexec.c | |
parent | a6b50f379d4b71acac73ac6b22cbe2d2c5b50b3f (diff) |
label as lvalue is a GCCism
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1461,9 +1461,9 @@ match_at(regex_t* reg, const UChar* str, const UChar* end, # define CASE(x) L_##x: sbegin = s; OPCODE_EXEC_HOOK; # define DEFAULT L_DEFAULT: # define NEXT sprev = sbegin; JUMP -# define JUMP goto *oplabels[*p++] +# define JUMP RB_GNUC_EXTENSION_BLOCK(goto *oplabels[*p++]) - static const void *oplabels[] = { + RB_GNUC_EXTENSION static const void *oplabels[] = { &&L_OP_FINISH, /* matching process terminator (no more alternative) */ &&L_OP_END, /* pattern code terminator (success end) */ @@ -4617,4 +4617,3 @@ onig_copy_encoding(OnigEncodingType *to, OnigEncoding from) { *to = *from; } - |