diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2021-09-09 18:19:07 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2021-09-10 20:00:06 +0900 |
commit | b563b9c48f09093b94554867fe8a71de6c27a37b (patch) | |
tree | 1fb05164825c578eab0310a08f5911bef035d9ef /spec/ruby/optional/capi/ext/object_spec.c | |
parent | 488ef54f0bbd724fd0965b7439d00ed1a3ffc379 (diff) |
spec/ruby/optional/capi/ext: suppress warnings
These warnings are okay here.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4815
Diffstat (limited to 'spec/ruby/optional/capi/ext/object_spec.c')
-rw-r--r-- | spec/ruby/optional/capi/ext/object_spec.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/optional/capi/ext/object_spec.c b/spec/ruby/optional/capi/ext/object_spec.c index 950c081818..eae2446976 100644 --- a/spec/ruby/optional/capi/ext/object_spec.c +++ b/spec/ruby/optional/capi/ext/object_spec.c @@ -151,10 +151,20 @@ static VALUE object_specs_rb_obj_method(VALUE self, VALUE obj, VALUE method) { return rb_obj_method(obj, method); } + +RBIMPL_WARNING_PUSH() +#if RBIMPL_HAS_WARNING("-Wdeprecated-declarations") || RBIMPL_COMPILER_SINCE(GCC, 4, 6, 0) +/* GCC 4.5 introduced __attribute__((__deprecated__)) */ +/* GCC 4.6 introduced #pragma GCC diagnostic push */ +RBIMPL_WARNING_IGNORED(-Wdeprecated-declarations) +#endif + static VALUE object_spec_rb_obj_taint(VALUE self, VALUE obj) { return rb_obj_taint(obj); } +RBIMPL_WARNING_POP() + static VALUE so_require(VALUE self) { rb_require("fixtures/foo"); return Qnil; |