summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-12 14:22:39 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-12 14:22:39 +0000
commitb1f8bbf4f7fca70b3a173932f2f3c9cfed07b075 (patch)
tree27f7e3ea96bc82696cbac718939c37f11e0430a7 /io.c
parentda235830b561960905d62604fa0dc6b56e640900 (diff)
* io.c (rb_f_syscall): Add warning messages. [ruby-core:34062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io.c b/io.c
index 2fcc46b139..834105031d 100644
--- a/io.c
+++ b/io.c
@@ -7858,6 +7858,10 @@ rb_f_syscall(int argc, VALUE *argv)
int num, retval = -1;
#endif
int i;
+
+ if (RTEST(ruby_verbose)) {
+ rb_warning("We plan to remove a syscall function at future release. DL(Fiddle) provides safer alternative.");
+ }
rb_secure(2);
if (argc == 0)