Skip to content
This repository

Remove unused variable #153

Merged
merged 1 commit into from over 1 year ago

2 participants

Shugo Maeda Florian Frank
Shugo Maeda

Please remove unnecessary GET_STATE(self) to avoid an unused-but-set-variable warning in gcc 4.6.

Florian Frank flori merged commit b24ea03 into from
Florian Frank flori closed this
Florian Frank
Owner

Thx!

Shugo Maeda

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Dec 13, 2012
Shugo Maeda shugo Remove unnecessary GET_STATE(self) to avoid an unused-but-set-variabl…
…e warning in gcc 4.6.
e5e7d40
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 0 additions and 1 deletion. Show diff stats Hide diff stats

  1. +0 1  ext/json/ext/generator/generator.c
1  ext/json/ext/generator/generator.c
@@ -629,7 +629,6 @@ static VALUE cState_to_h(VALUE self)
629 629 */
630 630 static VALUE cState_aref(VALUE self, VALUE name)
631 631 {
632   - GET_STATE(self);
633 632 if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) {
634 633 return rb_funcall(self, i_send, 1, name);
635 634 } else {

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.