summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-07 12:38:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-07 12:38:03 +0000
commit0455e8ea9a6a8d33840249806b03d75ea25820d8 (patch)
tree160b5c9ddc41c0e4f2e1c0e72fa49ec65569ae9c /util.c
parent126abc5c47a2467949021b493b2c742828224b30 (diff)
* io.c (rb_f_open), re.c (rb_reg_search), transcode.c (str_transcode):
suppress warnings. * util.c (quorem, rv_alloc, nrv_alloc): only used in dtoa(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.c b/util.c
index 6c5f498932..125b99103e 100644
--- a/util.c
+++ b/util.c
@@ -3067,6 +3067,7 @@ ret:
return sign ? -dval(rv) : dval(rv);
}
+#if 0 /* unused right now */
static int
quorem(Bigint *b, Bigint *S)
{
@@ -3177,11 +3178,13 @@ quorem(Bigint *b, Bigint *S)
}
return q;
}
+#endif
#ifndef MULTIPLE_THREADS
static char *dtoa_result;
#endif
+#if 0 /* unused right now */
static char *
rv_alloc(int i)
{
@@ -3212,6 +3215,7 @@ nrv_alloc(const char *s, char **rve, int n)
*rve = t;
return rv;
}
+#endif
/* freedtoa(s) must be used to free values s returned by dtoa
* when MULTIPLE_THREADS is #defined. It should be used in all cases,