From 017eff4ca52e033f38be8f9f9df8a7c964186cd1 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Jun 2008 12:38:03 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@16873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util.c') diff --git a/util.c b/util.c index 6c5f49893..125b99103 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, -- cgit