summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-11 02:57:02 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-11 02:57:02 +0000
commit9b29e5f7e1855f5381227363970e4ff21f3e4ae6 (patch)
tree93c34c3e1b87149444f938e68242db355d4d143b /compile.c
parent9ea35ccf306cda49f3ec1ab02ae1570f68e02765 (diff)
* compile.c (iseq_set_sequence): nonstatic initializer of an
aggregate type is a C99ism. * compile.c (enum compile_array_type_t): comma at the end of enum list is a C99ism. * vm_backtrace.c (enum LOCATION_TYPE): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/compile.c b/compile.c
index 6c1e218b0f..5d028c9236 100644
--- a/compile.c
+++ b/compile.c
@@ -1449,9 +1449,10 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
case TS_CDHASH:
{
VALUE map = operands[j];
- struct cdhash_set_label_struct data = {
- map, pos, len,
- };
+ struct cdhash_set_label_struct data;
+ data.hash = map;
+ data.pos = pos;
+ data.len = len;
rb_hash_foreach(map, cdhash_set_label_i, (VALUE)&data);
hide_obj(map);
@@ -2271,7 +2272,7 @@ compile_branch_condition(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * cond,
enum compile_array_type_t {
COMPILE_ARRAY_TYPE_ARRAY,
COMPILE_ARRAY_TYPE_HASH,
- COMPILE_ARRAY_TYPE_ARGS,
+ COMPILE_ARRAY_TYPE_ARGS
};
static int