summaryrefslogtreecommitdiff
path: root/ext/dl/handle.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-21 09:10:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-21 09:10:23 +0000
commit87af442f946da3b5ab3bc8fb351824ec8c240fe7 (patch)
tree792f75b9f15c0da49ecf99a8512ccd5581f59733 /ext/dl/handle.c
parentc6b6293bc13b9107cad52f407810cddc4dd0b475 (diff)
* suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/handle.c')
-rw-r--r--ext/dl/handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index dddd8d54e9..3e3b91a8c9 100644
--- a/ext/dl/handle.c
+++ b/ext/dl/handle.c
@@ -305,7 +305,7 @@ dlhandle_sym(void *handle, const char *name)
void (*func)();
rb_secure(2);
- func = dlsym(handle, name);
+ func = (void (*)())(VALUE)dlsym(handle, name);
CHECK_DLERROR;
#if defined(FUNC_STDCALL)
if( !func ){