summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
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 a00e5ea34a..d536bbf9ed 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