[前][次][番号順一覧][スレッド一覧]

ruby-changes:31291

From: nobu <ko1@a...>
Date: Sun, 20 Oct 2013 13:58:56 +0900 (JST)
Subject: [ruby-changes:31291] nobu:r43370 (trunk): ruby.h: suppress warnings

nobu	2013-10-20 13:58:49 +0900 (Sun, 20 Oct 2013)

  New Revision: 43370

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43370

  Log:
    ruby.h: suppress warnings
    
    * include/ruby/ruby.h (rb_obj_wb_unprotect, rb_obj_written),
      (rb_obj_write): suppress unused-parameter warnings.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 43369)
+++ include/ruby/ruby.h	(revision 43370)
@@ -1200,7 +1200,7 @@ void rb_gc_unprotect_logging(void *objpt https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1200
 #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 https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1220
 }
 
 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, VALU https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1238
 }
 
 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);
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43369)
+++ ChangeLog	(revision 43370)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Oct 20 13:58:47 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@s...>
 
 	* lib/rubygems:  Update RubyGems to master 0886307.  This commit

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]