Author: rpaulo
Date: Wed Oct 13 10:45:22 2010
New Revision: 213766
URL: http://svn.freebsd.org/changeset/base/213766

Log:
  Purposely tell the compiler that we ignore the return value of ADDCARRY()
  in the REDUCE macro.
  
  Reviewed by:  dim, rdivacky

Modified:
  head/sys/netinet6/in6_cksum.c

Modified: head/sys/netinet6/in6_cksum.c
==============================================================================
--- head/sys/netinet6/in6_cksum.c       Wed Oct 13 10:33:01 2010        
(r213765)
+++ head/sys/netinet6/in6_cksum.c       Wed Oct 13 10:45:22 2010        
(r213766)
@@ -78,7 +78,7 @@ __FBSDID("$FreeBSD$");
  */
 
 #define ADDCARRY(x)  (x > 65535 ? x -= 65535 : x)
-#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; 
ADDCARRY(sum);}
+#define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; 
(void)ADDCARRY(sum);}
 
 /*
  * m MUST contain a continuous IP6 header.
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to