summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-14 13:39:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-14 13:39:17 +0000
commitdd38dc1e81a46a0b6d8940b06a4368a391132687 (patch)
tree5b2ab529872778f1e38305a06f4d1b7b1d556d24 /gc.c
parent34eb5a4eaf36a42d2873fe3f7fc9c38b1c36e74a (diff)
downloadruby-dd38dc1e81a46a0b6d8940b06a4368a391132687.tar.gz
ruby-dd38dc1e81a46a0b6d8940b06a4368a391132687.tar.xz
ruby-dd38dc1e81a46a0b6d8940b06a4368a391132687.zip
* gc.c (negative_size_allocation_error_with_gvl): abolish a warning.
(negative_size_allocation_error): ditto. * ext/openssl/ossl.c (ossl_raise): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 57bd47eff..3d4144553 100644
--- a/gc.c
+++ b/gc.c
@@ -558,7 +558,7 @@ gc_profile_clear(void)
static void *
negative_size_allocation_error_with_gvl(void *ptr)
{
- rb_raise(rb_eNoMemError, (const char *)ptr);
+ rb_raise(rb_eNoMemError, "%s", (const char *)ptr);
return 0; /* should not be reached */
}
@@ -566,7 +566,7 @@ static void
negative_size_allocation_error(const char *msg)
{
if (ruby_thread_has_gvl_p()) {
- rb_raise(rb_eNoMemError, msg);
+ rb_raise(rb_eNoMemError, "%s", msg);
}
else {
if (ruby_native_thread_p()) {