summaryrefslogtreecommitdiff
path: root/ext/continuation
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-27 19:58:04 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-27 19:58:04 (GMT)
commit3c45a56746483804639e27dbaad3f42c43c3297e (patch)
treee93575c0ee5fce7973fa170a5609e2dea8a02f2c /ext/continuation
parent8299027f2e13ea4b7e50e3dc534d17211143092e (diff)
continuation.c: quiet static-linked-ext
* ext/continuation/continuation.c (Init_continuation): start quietly if statically linked. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/continuation')
-rw-r--r--ext/continuation/continuation.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/continuation/continuation.c b/ext/continuation/continuation.c
index 71b52db..c678371 100644
--- a/ext/continuation/continuation.c
+++ b/ext/continuation/continuation.c
@@ -6,6 +6,8 @@ void ruby_Init_Continuation_body(void);
void
Init_continuation(void)
{
+#ifndef RUBY_EXPORT
rb_warn("callcc is obsolete; use Fiber instead");
+#endif
ruby_Init_Continuation_body();
}