summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-25 07:56:42 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-25 07:56:42 +0000
commit63f39fcb4045f98888b24494b77317d70a8398e0 (patch)
tree46f2c37ad0fd78b7701bbd346a4f6cf85642d172 /struct.c
parent7c885222ca1d038006819afda93758cf1425ec66 (diff)
* random.c (random_rand): remove unused variables.
* struct.c (rb_struct_define_without_accessor): ditto. * strftime.c (rb_strftime_with_timespec): ditto. * sprintf.c: ditto. * time.c (time_asctime): remove useless GetTimeval(). * thread_pthread.c: cast to (void *) for %p. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/struct.c b/struct.c
index 78f836f8f5..5572a92135 100644
--- a/struct.c
+++ b/struct.c
@@ -240,12 +240,10 @@ rb_struct_define_without_accessor(const char *class_name, VALUE super, rb_alloc_
VALUE klass;
va_list ar;
VALUE members;
- long i;
char *name;
members = rb_ary_new2(0);
va_start(ar, alloc);
- i = 0;
while ((name = va_arg(ar, char*)) != NULL) {
rb_ary_push(members, ID2SYM(rb_intern(name)));
}