diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-20 04:58:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-20 04:58:49 +0000 |
commit | 291aead0b75192d0d9b77b169cc4ca25ee09570c (patch) | |
tree | 317831714843fef90ee27db309646c89f5060a26 | |
parent | 3f15d35f83dc91e1e5af6d98e6f6fcd52abd1649 (diff) | |
download | ruby-291aead0b75192d0d9b77b169cc4ca25ee09570c.tar.gz |
ruby.h: suppress warnings
* include/ruby/ruby.h (rb_obj_wb_unprotect, rb_obj_written),
(rb_obj_write): suppress unused-parameter warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/ruby/ruby.h | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Sun Oct 20 13:58:47 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * include/ruby/ruby.h (rb_obj_wb_unprotect, rb_obj_written), + (rb_obj_write): suppress unused-parameter warnings. + Sun Oct 20 10:32:48 2013 Eric Hodel <drbrain@segment7.net> * lib/rubygems: Update RubyGems to master 0886307. This commit diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 17f3a363dc..2a33b84dd7 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1200,7 +1200,7 @@ void rb_gc_unprotect_logging(void *objptr, const char *filename, int line); #endif static inline VALUE -rb_obj_wb_unprotect(VALUE x, const char *filename, int line) +rb_obj_wb_unprotect(VALUE x, RB_UNUSED_VAR(const char *filename), RB_UNUSED_VAR(int line)) { #ifdef RGENGC_LOGGING_WB_UNPROTECT RGENGC_LOGGING_WB_UNPROTECT((void *)x, filename, line); @@ -1220,7 +1220,7 @@ rb_obj_wb_unprotect(VALUE x, const char *filename, int line) } static inline VALUE -rb_obj_written(VALUE a, VALUE oldv, VALUE b, const char *filename, int line) +rb_obj_written(VALUE a, RB_UNUSED_VAR(VALUE oldv), VALUE b, RB_UNUSED_VAR(const char *filename), RB_UNUSED_VAR(int line)) { #ifdef RGENGC_LOGGING_OBJ_WRITTEN RGENGC_LOGGING_OBJ_WRITTEN(a, oldv, b, filename, line); @@ -1238,7 +1238,7 @@ rb_obj_written(VALUE a, VALUE oldv, VALUE b, const char *filename, int line) } static inline VALUE -rb_obj_write(VALUE a, VALUE *slot, VALUE b, const char *filename, int line) +rb_obj_write(VALUE a, VALUE *slot, VALUE b, RB_UNUSED_VAR(const char *filename), RB_UNUSED_VAR(int line)) { #ifdef RGENGC_LOGGING_WRITE RGENGC_LOGGING_WRITE(a, slot, b, filename, line); |