Module Name:    src
Committed By:   tsutsui
Date:           Sat Jun 21 02:02:40 UTC 2014

Modified Files:
        src/sys/arch/hp300/stand/common: dcm.c if_le.c

Log Message:
Appease gcc48 -Wunused-but-set-variable warnings.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/hp300/stand/common/dcm.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/hp300/stand/common/if_le.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp300/stand/common/dcm.c
diff -u src/sys/arch/hp300/stand/common/dcm.c:1.8 src/sys/arch/hp300/stand/common/dcm.c:1.9
--- src/sys/arch/hp300/stand/common/dcm.c:1.8	Tue Feb  8 20:20:14 2011
+++ src/sys/arch/hp300/stand/common/dcm.c	Sat Jun 21 02:02:40 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: dcm.c,v 1.8 2011/02/08 20:20:14 rmind Exp $	*/
+/*	$NetBSD: dcm.c,v 1.9 2014/06/21 02:02:40 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -112,7 +112,7 @@ dcmgetchar(dev_t dev)
 	struct dcmrfifo *fifo;
 	struct dcmpreg *pp;
 	unsigned int head;
-	int c, stat, port;
+	int c, port;
 
 	port = DCMCONUNIT;
 	pp = dcm_preg(dcm, port);
@@ -121,10 +121,10 @@ dcmgetchar(dev_t dev)
 		return 0;
 	fifo = &dcm->dcm_rfifos[3-port][head>>1];
 	c = fifo->data_char;
-	stat = fifo->data_stat;
+	(void)fifo->data_stat;
 	pp->r_head = (head + 2) & RX_MASK;
 	SEM_LOCK(dcm);
-	stat = dcm->dcm_iir;
+	(void)dcm->dcm_iir;
 	SEM_UNLOCK(dcm);
 	return c;
 }
@@ -145,7 +145,7 @@ dcmputchar(dev_t dev, int c)
 	struct dcmpreg *pp;
 	int timo;
 	unsigned int tail;
-	int port, stat;
+	int port;
 
 	port = DCMCONUNIT;
 	pp = dcm_preg(dcm, port);
@@ -163,7 +163,7 @@ dcmputchar(dev_t dev, int c)
 	while (tail != (pp->t_head & TX_MASK) && --timo)
 		;
 	SEM_LOCK(dcm);
-	stat = dcm->dcm_iir;
+	(void)dcm->dcm_iir;
 	SEM_UNLOCK(dcm);
 }
 #endif

Index: src/sys/arch/hp300/stand/common/if_le.c
diff -u src/sys/arch/hp300/stand/common/if_le.c:1.12 src/sys/arch/hp300/stand/common/if_le.c:1.13
--- src/sys/arch/hp300/stand/common/if_le.c:1.12	Thu May  1 18:08:47 2014
+++ src/sys/arch/hp300/stand/common/if_le.c	Sat Jun 21 02:02:40 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_le.c,v 1.12 2014/05/01 18:08:47 tsutsui Exp $	*/
+/*	$NetBSD: if_le.c,v 1.13 2014/06/21 02:02:40 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1993 Adam Glass
@@ -531,7 +531,10 @@ le_put(struct iodesc *desc, void *pkt, s
 	int unit = /*nif->nif_unit*/0;
 	struct le_softc *sc = &le_softc[unit];
 	volatile struct mds *cdm;
-	int timo, i, stat;
+	int timo, stat;
+#if 0
+	int i;
+#endif
 
  le_put_loop:
 	timo = 100000;
@@ -545,8 +548,8 @@ le_put(struct iodesc *desc, void *pkt, s
 	if (stat & (LE_BABL | LE_CERR | LE_MISS | LE_MERR))
 		le_error(unit, "le_put(way before xmit)", stat);
 	cdm = &sc->sc_td[sc->sc_next_td];
-	i = 0;
 #if 0
+	i = 0;
 	while (cdm->flags & LE_OWN) {
 		if ((i % 100) == 0)
 			printf("le%d: output buffer busy - flags=%x\n",

Reply via email to