Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2019 17:17:16 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353574 - head/sys/mips/nlm/dev/net/ucore
Message-ID:  <201910151717.x9FHHG1N009830@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Oct 15 17:17:16 2019
New Revision: 353574
URL: https://svnweb.freebsd.org/changeset/base/353574

Log:
  Fix a write-only variable warning from external GCC.
  
  Reviewed by:	imp
  Differential Revision:	https://reviews.freebsd.org/D22032

Modified:
  head/sys/mips/nlm/dev/net/ucore/ucore_app.c

Modified: head/sys/mips/nlm/dev/net/ucore/ucore_app.c
==============================================================================
--- head/sys/mips/nlm/dev/net/ucore/ucore_app.c	Tue Oct 15 17:14:30 2019	(r353573)
+++ head/sys/mips/nlm/dev/net/ucore/ucore_app.c	Tue Oct 15 17:17:16 2019	(r353574)
@@ -34,13 +34,12 @@
 
 int main(void)
 {
-	unsigned int pktrdy;
 	int num_cachelines = 1518 / 64 ; /* pktsize / L3 cacheline size */
 
 
 	/* Spray packets to using distribution vector */
 	while (1) {
-		pktrdy = nlm_read_ucore_rxpktrdy();
+		(void)nlm_read_ucore_rxpktrdy();
 		nlm_ucore_setup_poepktdistr(FWD_DIST_VEC, 0, 0, 0, 0);
 		nlm_ucore_pkt_done(num_cachelines, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 		    0, 0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910151717.x9FHHG1N009830>