svn commit: r213766 - head/sys/netinet6

Rui Paulo rpaulo at FreeBSD.org
Wed Oct 13 10:45:22 UTC 2010


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.


More information about the svn-src-head mailing list