Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove unused variable #153

Merged
merged 1 commit into from

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
Owner

Thx!

Shugo Maeda

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 13, 2012
  1. Shugo Maeda
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 1 deletion.
  1. +0 −1  ext/json/ext/generator/generator.c
1  ext/json/ext/generator/generator.c
View
@@ -629,7 +629,6 @@ static VALUE cState_to_h(VALUE self)
*/
static VALUE cState_aref(VALUE self, VALUE name)
{
- GET_STATE(self);
if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) {
return rb_funcall(self, i_send, 1, name);
} else {
Something went wrong with that request. Please try again.