diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-17 04:57:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-17 04:57:19 +0000 |
commit | d90075cb10d6d947b0262baf4903efa40db0fbb1 (patch) | |
tree | 62cc883dd94a0478531fb1d226fa05c664e1b9e1 /ext/json/parser/prereq.mk | |
parent | 77f3da02a0254d4f26d725c3b8dea9484c3ba222 (diff) | |
download | ruby-d90075cb10d6d947b0262baf4903efa40db0fbb1.tar.gz |
json/parser/prereq.mk: use enum
* ext/json/parser/prereq.mk (parser.c): use `enum` instead of
`static const int` to get rid of unused-const-variable warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json/parser/prereq.mk')
-rw-r--r-- | ext/json/parser/prereq.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/json/parser/prereq.mk b/ext/json/parser/prereq.mk index 440ef4017e..be7bcb4319 100644 --- a/ext/json/parser/prereq.mk +++ b/ext/json/parser/prereq.mk @@ -4,6 +4,7 @@ RAGEL = ragel .rl.c: $(RAGEL) -G2 $< - $(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' $@ + $(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \ + -e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' $@ parser.c: |