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

ruby-changes:26784

From: nobu <ko1@a...>
Date: Tue, 15 Jan 2013 23:07:32 +0900 (JST)
Subject: [ruby-changes:26784] nobu:r38836 (trunk): process.c: suppress warnings

nobu	2013-01-15 23:07:20 +0900 (Tue, 15 Jan 2013)

  New Revision: 38836

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

  Log:
    process.c: suppress warnings
    
    * process.c (p_uid_change_privilege, p_gid_change_privilege): suppress
      set-but-unsed warnings.

  Modified files:
    trunk/process.c

Index: process.c
===================================================================
--- process.c	(revision 38835)
+++ process.c	(revision 38836)
@@ -5106,6 +5106,7 @@ p_uid_change_privilege(VALUE obj, VALUE https://github.com/ruby/ruby/blob/trunk/process.c#L5106
 	    SAVED_USER_ID = uid;
 	}
 #else
+	(void)uid;
 	rb_notimplement();
 #endif
     }
@@ -5896,6 +5897,7 @@ p_gid_change_privilege(VALUE obj, VALUE https://github.com/ruby/ruby/blob/trunk/process.c#L5897
 	    rb_sys_fail(0);
 	}
 #else
+	(void)gid;
 	rb_notimplement();
 #endif
     }

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

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