From 5540c1de81f69e160c2302e56e4957147f240450 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 4 Oct 2014 23:09:32 +0000 Subject: ext: protoize no-arguments functions git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/json/parser/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/json/parser/parser.c') diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index 29335541d4..a8b606981c 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -2092,7 +2092,7 @@ static VALUE cParser_parse(VALUE self) } -static JSON_Parser *JSON_allocate() +static JSON_Parser *JSON_allocate(void) { JSON_Parser *json = ALLOC(JSON_Parser); MEMZERO(json, JSON_Parser, 1); @@ -2145,7 +2145,7 @@ static VALUE cParser_quirks_mode_p(VALUE self) } -void Init_parser() +void Init_parser(void) { rb_require("json/common"); mJSON = rb_define_module("JSON"); -- cgit v1.2.3