summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/socket/sockport.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e37eadb8783..71cdfdcf07b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Feb 14 02:20:04 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/sockport.h (SET_SA_LEN): cast to void for supressing a
+ warning.
+
Fri Feb 13 23:37:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopen
diff --git a/ext/socket/sockport.h b/ext/socket/sockport.h
index a00e5ea34ae..d536bbf9ede 100644
--- a/ext/socket/sockport.h
+++ b/ext/socket/sockport.h
@@ -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