From 9d37857e2b8a4b227e52ff8438e44968d6249f95 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 13 Feb 2009 17:21:53 +0000 Subject: * ext/socket/sockport.h (SET_SA_LEN): cast to void for supressing a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/sockport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/socket') 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 -- cgit v1.2.3