diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-12-17 17:16:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-12-19 09:52:17 +0900 |
commit | 7aa8a786740fd84bd718b0c055f190b25a8f0277 (patch) | |
tree | 5d837abc1cc14480b4bff966c8945b8bb66b4f4e /vm_args.c | |
parent | 9bf9de3d9d2f67bc401151fb94abf75b5eff5913 (diff) |
Manage deprecation warnings about keyword argument
Diffstat (limited to 'vm_args.c')
-rw-r--r-- | vm_args.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -597,6 +597,8 @@ static st_table *caller_to_callees = 0; static VALUE rb_warn_check(const rb_execution_context_t * const ec, const rb_iseq_t *const iseq) { + if (!rb_warning_category_enabled_p(RB_WARN_CATEGORY_DEPRECATED)) return 1; + if (!iseq) return 0; const st_data_t callee = (st_data_t)(iseq->body->iseq_unique_id * 2); |