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

ruby-changes:10732

From: akr <ko1@a...>
Date: Sat, 14 Feb 2009 02:24:18 +0900 (JST)
Subject: [ruby-changes:10732] Ruby:r22296 (trunk): * ext/socket/sockport.h (SET_SA_LEN): cast to void for supressing a

akr	2009-02-14 02:21:53 +0900 (Sat, 14 Feb 2009)

  New Revision: 22296

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

  Log:
    * ext/socket/sockport.h (SET_SA_LEN): cast to void for supressing a
      warning.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/sockport.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22295)
+++ ChangeLog	(revision 22296)
@@ -1,3 +1,8 @@
+Sat Feb 14 02:20:04 2009  Tanaka Akira  <akr@f...>
+
+	* ext/socket/sockport.h (SET_SA_LEN): cast to void for supressing a
+	  warning.
+
 Fri Feb 13 23:37:10 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopen
Index: ext/socket/sockport.h
===================================================================
--- ext/socket/sockport.h	(revision 22295)
+++ ext/socket/sockport.h	(revision 22296)
@@ -26,9 +26,9 @@
 #endif
 
 #ifdef HAVE_SA_LEN
-# define SET_SA_LEN(sa, len) (sa)->sa_len = (len)
+# define SET_SA_LEN(sa, len) (void)((sa)->sa_len = (len))
 #else
-# define SET_SA_LEN(sa, len) (len)
+# define SET_SA_LEN(sa, len) (void)(len)
 #endif
 
 #ifdef HAVE_SIN_LEN

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

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