summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-01-03 14:53:25 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-01-03 14:53:25 +0900
commit170f4dbb9bf9363c9fd012fc3f4e340ccda43273 (patch)
treef322f4dc3b96fb2078cffa741075600d3fbf93ef /class.c
parente014e6bf6685f681998238ff005f6d161d43ce51 (diff)
Fix unused warnings
http://ci.rvm.jp/results/trunk_gcc7@silicon-docker/2539622 ``` /tmp/ruby/v2/src/trunk_gcc7/class.c: In function 'rb_scan_args_parse': /tmp/ruby/v2/src/trunk_gcc7/class.c:1971:12: warning: unused variable 'tmp_buffer' [-Wunused-variable] VALUE *tmp_buffer = arg->tmp_buffer; ^~~~~~~~~~ ``` ``` In file included from /tmp/ruby/v2/src/trunk_gcc7/vm_insnhelper.c:1895:0, from /tmp/ruby/v2/src/trunk_gcc7/vm.c:349: /tmp/ruby/v2/src/trunk_gcc7/vm_args.c:212:1: warning: 'args_stored_kw_argv_to_hash' defined but not used [-Wunused-function] args_stored_kw_argv_to_hash(struct args_info *args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Diffstat (limited to 'class.c')
-rw-r--r--class.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/class.c b/class.c
index e42ee08..7db54d6 100644
--- a/class.c
+++ b/class.c
@@ -1968,7 +1968,6 @@ static void
rb_scan_args_parse(int kw_flag, int argc, const VALUE *argv, const char *fmt, struct rb_scan_args_t *arg)
{
const char *p = fmt;
- VALUE *tmp_buffer = arg->tmp_buffer;
int keyword_given = 0;
int last_hash_keyword = 0;