summaryrefslogtreecommitdiffstats
path: root/ext/socket
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-13 17:21:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-13 17:21:53 +0000
commite3906914edabcdc9cf4c15cf2fe6ab11368efbc2 (patch)
tree7c10cb79d8931033815a46e128b4751bede308b8 /ext/socket
parent767c8d721f7650fbd48f3fb5cd06de6756c3a66c (diff)
downloadruby-e3906914edabcdc9cf4c15cf2fe6ab11368efbc2.tar.gz
ruby-e3906914edabcdc9cf4c15cf2fe6ab11368efbc2.tar.xz
ruby-e3906914edabcdc9cf4c15cf2fe6ab11368efbc2.zip
* ext/socket/sockport.h (SET_SA_LEN): cast to void for supressing a
warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/sockport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/sockport.h b/ext/socket/sockport.h
index a00e5ea34..d536bbf9e 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