summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-09 06:55:11 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-09 06:55:11 +0000
commit01d998aafe12e1ff5a93037d5d730ecf0f205664 (patch)
tree454dbb6c67f564d16b1be2a751639cc9978b17aa
parent58823392b465ef50819f36994be5a75a91da6ecc (diff)
type func(); is different from type func(void);
If a function declarator includes no parameter list, that doesn't mean the function takes zero parameter. rb_ast_new here does take zero parameter, so it should be explicitly prototypes as (void). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.h b/node.h
index 9a375619f1..c6004b8608 100644
--- a/node.h
+++ b/node.h
@@ -487,7 +487,7 @@ typedef struct rb_ast_struct {
VALUE mark_ary;
rb_ast_body_t body;
} rb_ast_t;
-rb_ast_t *rb_ast_new();
+rb_ast_t *rb_ast_new(void);
void rb_ast_mark(rb_ast_t*);
void rb_ast_dispose(rb_ast_t*);
void rb_ast_free(rb_ast_t*);